Debian Codegraph @

Makefile

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