File: rules

package info (click to toggle)
nulib2 3.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,000 kB
  • sloc: ansic: 21,694; sh: 2,756; makefile: 245
file content (30 lines) | stat: -rwxr-xr-x 695 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND = -DOPTFLAGSTR=\"Debian\"

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean -Dnufxlib
	dh_auto_clean -Dnulib2

override_dh_auto_configure:
	dh_auto_configure -Dnufxlib -- --enable-bzip2
	dh_auto_configure -Dnulib2 -- --enable-bzip2

override_dh_auto_build:
	dh_auto_build -Dnufxlib
	dh_auto_build -Dnulib2

override_dh_auto_install:
	dh_auto_install -Dnulib2
	cp nufxlib/ChangeLog.txt nufxlib/library-changelog
	cp nulib2/ChangeLog.txt nulib2/nulib2-changelog

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	nufxlib/samples/test-basic
	nufxlib/samples/test-names
endif