Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 4 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/pixmaps/
21 install -d -v $(DESTDIR)/share/man/man1/
22 install -d -v $(DESTDIR)/share/applications/
23 install -s -m 0755 ebook2cwgui $(DESTDIR)/bin/
24 install -m 0644 ebook2cw.xpm $(DESTDIR)/share/pixmaps/
25 install -m 0644 ebook2cwgui.1 $(DESTDIR)/share/man/man1/
26 install -m 0644 ebook2cwgui.desktop $(DESTDIR)/share/applications/
27
28 uninstall:
29 rm -f $(DESTDIR)/bin/ebook2cwgui
30 rm -f $(DESTDIR)/share/pixmaps/ebook2cw.xpm
31 rm -f $(DESTDIR)/share/man/man1/ebook2cwgui.1
32
33 clean:
34 rm -f ebook2cwgui ebook2cwgui.exe *~ *.mp3 *.ogg
35
36 dist:
37 sed 's/v[0-9].[0-9].[0-9]/v$(VERSION)/g' README > README2
38 rm -f README
39 mv README2 README
40 rm -f releases/ebook2cwgui-$(VERSION).tar.gz
41 rm -rf releases/ebook2cwgui-$(VERSION)
42 mkdir ebook2cwgui-$(VERSION)
43 cp ebook2cwgui.cpp ebook2cwgui.h main.cpp main.h ChangeLog \
44 ebook2cwgui.1 README COPYING Makefile ebook2cw.xpm \
45 about.cpp about.h \
46 ebook2cwgui-$(VERSION)
47 tar -zcf ebook2cwgui-$(VERSION).tar.gz ebook2cwgui-$(VERSION)
48 mv ebook2cwgui-$(VERSION) releases/
49 mv ebook2cwgui-$(VERSION).tar.gz releases/
50 md5sum releases/*.gz > releases/md5sums.txt
51 chmod a+r releases/*
52