| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) |
| 7 |
NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) |
| 8 |
endif |
| 9 |
|
| 10 |
CONFIGURE_FLAGS += --disable-werror --docdir=/usr/share/doc/libmwaw-doc --without-docs |
| 11 |
|
| 12 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
|
| 19 |
override_dh_auto_build-arch: |
| 20 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 21 |
$(MAKE) $(NJOBS) |
| 22 |
|
| 23 |
override_dh_auto_build-indep: |
| 24 |
dh_auto_configure -- $(filter-out --without-docs,$(CONFIGURE_FLAGS)) |
| 25 |
$(MAKE) $(NJOBS) |
| 26 |
|