Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #DH_VERBOSE = 1
5
6 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/default.mk
9
10 # see FEATURE AREAS in dpkg-buildflags(1)
11 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12
13 # see ENVIRONMENT in dpkg-buildflags(1)
14 # package maintainers to append CFLAGS
15 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16 # package maintainers to append LDFLAGS
17 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18
19 ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
20 NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
21 endif
22
23 CONFIGURE_FLAGS += --without-docs --enable-static --disable-werror
24
25 # main packaging script based on dh7 syntax
26 %:
27 dh $@
28
29 override_dh_auto_configure:
30
31 override_dh_auto_build-arch:
32 dh_auto_configure -- $(CONFIGURE_FLAGS)
33 $(MAKE) $(NJOBS)
34
35 override_dh_auto_build-indep:
36 dh_auto_configure -- $(filter-out --without-docs,$(CONFIGURE_FLAGS))
37 $(MAKE) $(NJOBS)