Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 2 of 6 — not the installed (fully patched) source.
6 Debian patches touch this file
1 # ebook2cwgui Makefile, Fabian Kurz, DJ1YFK, http://fkurz.net/ham/ebook2cw.html
2 #
3 # $Id: Makefile 579 2013-01-18 17:38:17Z dj1yfk $
4
5 VERSION=0.1.2
6 override DESTDIR:=$(DESTDIR)/usr
7
8 all: ebook2cwgui
9
10 ebook2cwgui:
11 $(CXX) $(CPPFLAGS) $(CFLAGS) ebook2cwgui.cpp about.cpp main.cpp \
12 -Wall `wx-config --libs --cxxflags` $(LDFLAGS) -o ebook2cwgui
13
14 win32:
15 g++ -static ebook2cwgui.cpp about.cpp main.cpp \
16 -Wall `/wx/wx-config --libs --cxxflags` -o ebook2cwgui
17
18 install:
19 install -d -v $(DESTDIR)/bin/
20 install -d -v $(DESTDIR)/share/man/man1/
21 install -s -m 0755 ebook2cwgui $(DESTDIR)/bin/
22 install -m 0644 ebook2cwgui.1 $(DESTDIR)/share/man/man1/
23
24 uninstall:
25 rm -f $(DESTDIR)/bin/ebook2cwgui
26 rm -f $(DESTDIR)/share/man/man1/ebook2cwgui.1
27
28 clean:
29 rm -f ebook2cwgui ebook2cwgui.exe *~ *.mp3 *.ogg
30
31 dist:
32 sed 's/v[0-9].[0-9].[0-9]/v$(VERSION)/g' README > README2
33 rm -f README
34 mv README2 README
35 rm -f releases/ebook2cwgui-$(VERSION).tar.gz
36 rm -rf releases/ebook2cwgui-$(VERSION)
37 mkdir ebook2cwgui-$(VERSION)
38 cp ebook2cwgui.cpp ebook2cwgui.h main.cpp main.h ChangeLog \
39 ebook2cwgui.1 README COPYING Makefile ebook2cw.xpm \
40 about.cpp about.h \
41 ebook2cwgui-$(VERSION)
42 tar -zcf ebook2cwgui-$(VERSION).tar.gz ebook2cwgui-$(VERSION)
43 mv ebook2cwgui-$(VERSION) releases/
44 mv ebook2cwgui-$(VERSION).tar.gz releases/
45 md5sum releases/*.gz > releases/md5sums.txt
46 chmod a+r releases/*
47