File: rules

package info (click to toggle)
libmwaw 0.3.9-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 11,380 kB
  • ctags: 12,993
  • sloc: cpp: 179,366; sh: 4,449; makefile: 655
file content (24 lines) | stat: -rwxr-xr-x 613 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

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

ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
  NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
endif
	
CONFIGURE_FLAGS += --disable-werror --docdir=/usr/share/doc/libmwaw-doc --without-docs

%:
	dh $@ --with autoreconf

override_dh_auto_configure:

override_dh_auto_build-arch:
	dh_auto_configure -- $(CONFIGURE_FLAGS)
	$(MAKE) $(NJOBS)

override_dh_auto_build-indep:
	dh_auto_configure -- $(filter-out --without-docs,$(CONFIGURE_FLAGS))
	$(MAKE) $(NJOBS)