File: rules

package info (click to toggle)
plume-creator 0.67%2Bgit20151203.1081b12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,676 kB
  • sloc: cpp: 23,527; makefile: 64; sh: 40; xml: 15
file content (37 lines) | stat: -rwxr-xr-x 1,015 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
36
37
#!/usr/bin/make -f

export QT_SELECT := qt5

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS2:=-Wl,-z,defs  -Wl,-as-needed -Wl,--no-undefined

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	cd translations && lrelease *.ts
	CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
	CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
	LFLAGS="$(LDFLAGS) $(LDFLAGS2)" \
		dh_auto_configure -- "CONFIG+=debug" plume-creator.pro

override_dh_auto_build:
	dh_auto_build -- LFLAGS="$(LDFLAGS) $(LDFLAGS2)"

override_dh_clean:
	rm -f Makefile plume-creator
	rm -f `find . -name "*.o"`
	rm -f `find . -name "*.a"`
	rm -f translations/*.qm
	rm -rf resources/unix/pixmaps
	dh_clean

override_dh_auto_install:
	dh_auto_install -- INSTALL_ROOT=$(CURDIR)/debian/plume-creator
	rm -f debian/*/usr/share/plume-creator/COPYING
	rm -f debian/*/usr/share/plume-creator/License