summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 4ddb7416ea9dd5e2af361aff963e4f99719f3b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -- \
			-DXTRKCAD_USE_GETTEXT=ON \
			-DXTRKCAD_USE_GTK=ON \
			-DCMAKE_INSTALL_PREFIX:PATH=/usr/

override_dh_install:
	dh_install
	rm -fr $(CURDIR)/debian/xtrkcad/usr/share/xtrkcad/html
	rm -f $(CURDIR)/debian/xtrkcad/usr/share/xtrkcad/Readme.txt
	rm -f $(CURDIR)/debian/xtrkcad/usr/share/xtrkcad/logo.bmp
	rm -f $(CURDIR)/debian/xtrkcad/usr/share/xtrkcad/COPYING