File: rules

package info (click to toggle)
qtads 1.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,020 kB
  • ctags: 8,102
  • sloc: cpp: 47,986; ansic: 23,768; makefile: 17; sh: 3
file content (30 lines) | stat: -rwxr-xr-x 922 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/class/qmake.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

export QTDIR = /usr/share/qt3

CFLAGS += -fno-strict-aliasing
CXXFLAGS += -fno-strict-aliasing

DEB_QMAKE_ARGS := BIN_INSTALL=/usr/games DOC_INSTALL=/usr/share/doc \
	DATA_INSTALL=/usr/share BUILD=release

install/qtads::
# GPL is already on Debian systems...
	rm -f $(DEB_DESTDIR)/usr/share/doc/qtads/COPYING
# Source guidelines and installation instructions are useless for
# the binary package...
	rm -f $(DEB_DESTDIR)/usr/share/doc/qtads/SOURCE_README \
		$(DEB_DESTDIR)/usr/share/doc/qtads/INSTALL

# Install the wrapper script
	mv $(DEB_DESTDIR)/usr/games/qtads $(DEB_DESTDIR)/usr/games/qtads.real
	install -m 755 debian/qtads-wrapper $(DEB_DESTDIR)/usr/games/qtads

clean::
	rm -f Makefile src/charmap_inst_dir.h src/doc_inst_dir.h \
		src/i18n_inst_dir.h