File: Makefile

package info (click to toggle)
qpxtool 0.7.1.002-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,552 kB
  • sloc: cpp: 33,506; sh: 711; makefile: 418; ansic: 4
file content (37 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download | duplicates (2)
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
QMAKE4= qmake-qt4

all: Makefile.qmake
	$(MAKE) -f Makefile.qmake 
	lrelease -verbose qpxtool.pro

clean: Makefile.qmake
	rm -f Makefile.qmake
	rm -f qpxtool
	rm -f obj/*
	rm -f moc/*
	rm -f *~
	rm -f src/*~
	rm -f include/*~
	rm -f locale/*.qm
	rm -f qrc_qpxtool.cpp

install: Makefile.qmake
	install -m 755 qpxtool $(DESTDIR)$(BINDIR)/qpxtool
	mkdir -p $(DESTDIR)$(PREFIX)/share/qpxtool/locale
	install -m 644 locale/*.qm $(DESTDIR)$(PREFIX)/share/qpxtool/locale
	mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps
	install -m 644 images/q.png $(DESTDIR)$(PREFIX)/share/pixmaps/qpxtool.png
	mkdir -p $(DESTDIR)$(PREFIX)/share/applications
	install -m 644 qpxtool.desktop $(DESTDIR)$(PREFIX)/share/applications/qpxtool.desktop

uninstall:
	rm -f $(DESTDIR)$(BINDIR)/qpxtool
	rm -rf $(DESTDIR)$(PREFIX)/share/qpxtool
	rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/qpxtool.png
	rm -f $(DESTDIR)$(PREFIX)/share/applications/qpxtool.desktop

Makefile.qmake:
	rm -f Makefile.qmake
	$(QMAKE4) LIBS+=-L../lib/lib LIBS+=-lqpxtransport CONFIG+=debug -o Makefile.qmake

.PHONY: all clean install uninstall