Debian Codegraph @

Makefile

raw ◀ ▶
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) -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 rm -f $(DESTDIR)/share/applications/ebook2cwgui.desktop
33
34 clean:
35 rm -f ebook2cwgui ebook2cwgui.exe *~ *.mp3 *.ogg
36
37 dist:
38 sed 's/v[0-9].[0-9].[0-9]/v$(VERSION)/g' README > README2
39 rm -f README
40 mv README2 README
41 rm -f releases/ebook2cwgui-$(VERSION).tar.gz
42 rm -rf releases/ebook2cwgui-$(VERSION)
43 mkdir ebook2cwgui-$(VERSION)
44 cp ebook2cwgui.cpp ebook2cwgui.h main.cpp main.h ChangeLog \
45 ebook2cwgui.1 README COPYING Makefile ebook2cw.xpm \
46 about.cpp about.h \
47 ebook2cwgui-$(VERSION)
48 tar -zcf ebook2cwgui-$(VERSION).tar.gz ebook2cwgui-$(VERSION)
49 mv ebook2cwgui-$(VERSION) releases/
50 mv ebook2cwgui-$(VERSION).tar.gz releases/
51 md5sum releases/*.gz > releases/md5sums.txt
52 chmod a+r releases/*
53