File: rules

package info (click to toggle)
molequeue 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 2,896 kB
  • sloc: cpp: 22,039; python: 478; xml: 364; sh: 59; makefile: 14
file content (38 lines) | stat: -rwxr-xr-x 1,082 bytes parent folder | download | duplicates (2)
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
38
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CMAKE_OPTS=-DBUILD_SHARED_LIBS=OFF \
           -DCMAKE_SKIP_RPATH=ON

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure-arch:
	dh_auto_configure -- $(CMAKE_OPTS)

#override_dh_auto_configure-indep:
#	dh_auto_configure -- -DBUILD_DOCUMENTATION=ON $(CMAKE_OPTS)
#
#override_dh_auto_build-indep:
#	cd obj-$(DEB_HOST_GNU_TYPE); make documentation
#
#override_dh_auto_install-arch:
#	dh_auto_install -a
#	cp -r obj-$(DEB_HOST_GNU_TYPE)/bin debian/tmp/usr
#
#override_dh_auto_install-indep:
#	if [ ! -d debian/tmp ]; then mkdir -p debian/tmp; fi
#	cp -r obj-$(DEB_HOST_GNU_TYPE)/docs/html debian/tmp

override_dh_missing:
	dh_missing --list-missing