File: rules

package info (click to toggle)
psi 0.15-4
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 12,124 kB
  • ctags: 19,814
  • sloc: cpp: 138,677; ansic: 25,382; xml: 1,958; sh: 451; objc: 406; makefile: 299; python: 196; ruby: 171
file content (35 lines) | stat: -rwxr-xr-x 905 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
31
32
33
34
35
#!/usr/bin/make -f

Q_CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
Q_CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(Q_CPPFLAGS)
Q_CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(Q_CPPFLAGS)
Q_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
export Q_CPPFLAGS Q_CFLAGS Q_CXXFLAGS Q_LDFLAGS

%:
	dh $@ --parallel

override_dh_auto_configure:
	#qt-qconf
	./configure --prefix=/usr --qtdir=/usr/share/qt4/ --no-separate-debug-info # --enable-debug

override_dh_icons:
	mkdir -p $(CURDIR)/debian/psi/usr/share/pixmaps
	cp debian/psi.xpm $(CURDIR)/debian/psi/usr/share/pixmaps/
	dh_icons

override_dh_auto_install:
	dh_auto_install -- INSTALL_ROOT="$(CURDIR)/debian/psi"

override_dh_clean:
	dh_clean
	-rm conf.log
	-rm conf.pri
	-rm iris/conf.pri
	-rm iris/lib/libiris.a
	-rm iris/lib/libiris.prl
	-rm iris/lib/libirisnet.a
	-rm iris/lib/libirisnet.prl
	-rm src/psi
	-rm src/config.h