File: rules

package info (click to toggle)
qliss3d 1.4-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 528 kB
  • sloc: cpp: 1,313; sh: 153; makefile: 128; ansic: 10
file content (33 lines) | stat: -rwxr-xr-x 837 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
#!/usr/bin/make -f

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all future=+lfs
export DEB_BUILD_MAINT_OPTIONS

DEB_CXXFLAGS_MAINT_APPEND=	-Wall -W
DEB_LDFLAGS_MAINT_APPEND=	-Wl,--as-needed

ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	DEB_CXXFLAGS_MAINT_APPEND+=	-Werror
endif

export DEB_CXXFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND

override_dh_auto_configure:
	lrelease qliss3d.pro
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build
	xpmtoppm debian/qliss3d.xpm | pnmscalefixed 2 | pnmtopng > debian/qliss3d.png

override_dh_fixperms:
	chmod 644 $(CURDIR)/debian/qliss3d/usr/share/qliss3d/qliss3d.cy.qm
	chmod 644 $(CURDIR)/debian/qliss3d/usr/share/qliss3d/qliss3d.de.qm
	dh_fixperms

override_dh_installchangelogs:
	dh_installchangelogs -X CHANGELOG

%:
	dh $@