Debian Codegraph @

Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 2 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 # ebook2cw Makefile -- Fabian Kurz, DJ5CW -- http://fkurz.net/ham/ebook2cw.html
2
3 VERSION=0.8.5
4 ROOT_DESTDIR?=/usr
5 override DESTDIR:=$(DESTDIR)$(ROOT_DESTDIR)
6
7 # Set to NO to compile without Lame/Ogg-vorbis support
8 USE_LAME?=YES
9 USE_OGG?=YES
10
11 CFLAGS:=$(CFLAGS) -D DESTDIR=\"$(ROOT_DESTDIR)\" -D VERSION=\"$(VERSION)\"
12
13 ifeq ($(USE_LAME), YES)
14 CFLAGS:=$(CFLAGS) -D LAME
15 LDFLAGS:=$(LDFLAGS) -lmp3lame
16 endif
17 ifeq ($(USE_OGG), YES)
18 CFLAGS:=$(CFLAGS) -D OGGV
19 LDFLAGS:=$(LDFLAGS) -lvorbis -lvorbisenc -logg
20 endif
21
22 UNAME := $(shell uname)
23
24 ifeq ($(UNAME), Darwin)
25 LDFLAGS += -lintl
26 endif
27
28 all: ebook2cw
29
30 ebook2cw: ebook2cw.c codetables.h
31 $(CC) ebook2cw.c -pedantic -Wall -Wno-format-truncation -lm $(LDFLAGS) $(CFLAGS) -o ebook2cw
32 msgfmt -o po/de.mo po/de.po
33
34 cgi: ebook2cw.c codetables.h
35 $(CC) -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
36
37 cgibuffered: ebook2cw.c codetables.h
38 $(CC) -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -D CGIBUFFERED -o cw.cgi
39
40 static:
41 $(CC) -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -o ebook2cw
42
43 install:
44 install -d -v $(DESTDIR)/share/man/man1/
45 install -d -v $(DESTDIR)/bin/
46 install -d -v $(DESTDIR)/share/doc/ebook2cw/
47 install -d -v $(DESTDIR)/share/doc/ebook2cw/examples/
48 install -d -v $(DESTDIR)/share/locale/de/LC_MESSAGES/
49 install -s -m 0755 ebook2cw $(DESTDIR)/bin/
50 install -m 0644 ebook2cw.1 $(DESTDIR)/share/man/man1/
51 install -m 0644 README $(DESTDIR)/share/doc/ebook2cw/
52 install -m 0644 ebook2cw.conf $(DESTDIR)/share/doc/ebook2cw/examples/
53 install -m 0644 isomap.txt $(DESTDIR)/share/doc/ebook2cw/examples/
54 install -m 0644 utf8map.txt $(DESTDIR)/share/doc/ebook2cw/examples/
55 install -m 0644 po/de.mo $(DESTDIR)/share/locale/de/LC_MESSAGES/ebook2cw.mo
56
57 uninstall:
58 rm -f $(DESTDIR)/bin/ebook2cw
59 rm -f $(DESTDIR)/share/man/man1/ebook2cw.1
60 rm -rf $(DESTDIR)/share/doc/ebook2cw
61
62 clean:
63 rm -f ebook2cw *~ *.mp3 *.ogg *.cgi ebook2cw.exe po/*.mo
64
65 dist:
66 sed 's/v[0-9].[0-9].[0-9]/v$(VERSION)/g' README > README2
67 rm -f README
68 mv README2 README
69 rm -f releases/ebook2cw-$(VERSION).tar.gz
70 rm -rf releases/ebook2cw-$(VERSION)
71 mkdir ebook2cw-$(VERSION)
72 mkdir ebook2cw-$(VERSION)/po
73 cp ebook2cw.c codetables.h ChangeLog ebook2cw.1 \
74 ebook2cw.conf isomap.txt utf8map.txt \
75 ebook2cw.bat \
76 README COPYING Makefile ebook2cw-$(VERSION)
77 cp po/*.po ebook2cw-$(VERSION)/po
78 tar -zcf ebook2cw-$(VERSION).tar.gz ebook2cw-$(VERSION)
79 mv ebook2cw-$(VERSION) releases/
80 mv ebook2cw-$(VERSION).tar.gz releases/
81 md5sum releases/*.gz > releases/md5sums.txt
82 chmod a+r releases/*
83