File: Makefile

package info (click to toggle)
ebook2cwgui 0.1.2-4
  • links: PTS
  • area: main
  • in suites: buster
  • size: 240 kB
  • sloc: cpp: 1,265; makefile: 226
file content (53 lines) | stat: -rw-r--r-- 1,820 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ebook2cwgui Makefile, Fabian Kurz, DJ1YFK, http://fkurz.net/ham/ebook2cw.html
#
# $Id: Makefile 579 2013-01-18 17:38:17Z dj1yfk $

VERSION=0.1.2
override DESTDIR:=$(DESTDIR)/usr

all: ebook2cwgui

ebook2cwgui:
	$(CXX) $(CPPFLAGS) $(CFLAGS) ebook2cwgui.cpp about.cpp main.cpp \
	       	-Wall `wx-config --libs --cxxflags` $(LDFLAGS) -o ebook2cwgui

win32:
	g++ -static ebook2cwgui.cpp about.cpp main.cpp \
	       	-Wall `/wx/wx-config --libs --cxxflags` -o ebook2cwgui

install:
	install -d -v                      $(DESTDIR)/bin/
	install -d -v                      $(DESTDIR)/share/pixmaps/
	install -d -v                      $(DESTDIR)/share/man/man1/
	install -d -v                      $(DESTDIR)/share/applications/
	install -s -m 0755 ebook2cwgui     $(DESTDIR)/bin/
	install    -m 0644 ebook2cw.xpm    $(DESTDIR)/share/pixmaps/
	install    -m 0644 ebook2cwgui.1   $(DESTDIR)/share/man/man1/
	install    -m 0644 ebook2cwgui.desktop  $(DESTDIR)/share/applications/
	
uninstall:
	rm -f $(DESTDIR)/bin/ebook2cwgui
	rm -f $(DESTDIR)/share/pixmaps/ebook2cw.xpm
	rm -f $(DESTDIR)/share/man/man1/ebook2cwgui.1
	rm -f $(DESTDIR)/share/applications/ebook2cwgui.desktop

clean:
	rm -f ebook2cwgui ebook2cwgui.exe *~ *.mp3 *.ogg

dist:
	sed 's/v[0-9].[0-9].[0-9]/v$(VERSION)/g' README > README2
	rm -f README
	mv README2 README
	rm -f releases/ebook2cwgui-$(VERSION).tar.gz
	rm -rf releases/ebook2cwgui-$(VERSION)
	mkdir ebook2cwgui-$(VERSION)
	cp ebook2cwgui.cpp ebook2cwgui.h main.cpp main.h ChangeLog \
		ebook2cwgui.1 README COPYING Makefile ebook2cw.xpm \
		about.cpp about.h \
		ebook2cwgui-$(VERSION)
	tar -zcf ebook2cwgui-$(VERSION).tar.gz ebook2cwgui-$(VERSION)
	mv ebook2cwgui-$(VERSION) releases/
	mv ebook2cwgui-$(VERSION).tar.gz releases/
	md5sum releases/*.gz > releases/md5sums.txt
	chmod a+r releases/*