File: rules

package info (click to toggle)
libg3d 0.0.8-38
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,864 kB
  • sloc: ansic: 27,295; sh: 9,263; xml: 4,123; makefile: 850; cpp: 13
file content (31 lines) | stat: -rwxr-xr-x 912 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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie abi=+lfs

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DOPACKAGES = $(shell dh_listpackages)

CONFIGURE_ARGS =
CONFIGURE_ARGS += --disable-libmagic
ifeq ($(filter libg3d-doc,$(DOPACKAGES)),)
CONFIGURE_ARGS += --disable-gtk-doc
else
CONFIGURE_ARGS += --enable-gtk-doc
endif


binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_ARGS)

override_dh_installdocs:
	dh_installdocs -A AUTHORS README TODO

override_dh_auto_test:
	# do nothing to fix dh_auto_test thinks that tests is test target

.PHONY: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep \
	override_dh_installdocs override_dh_auto_configure override_dh_auto_test