File: rules

package info (click to toggle)
uudeview 0.5.20-12
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,504 kB
  • sloc: ansic: 12,144; sh: 2,754; makefile: 357; awk: 13
file content (41 lines) | stat: -rwxr-xr-x 1,080 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
39
40
41
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_CFLAGS_MAINT_APPEND := -Wall -D_FILE_OFFSET_BITS=64


override_dh_auto_configure:
	env with_includes=/usr/include/tcl \
		dh_auto_configure --verbose -- \
		--enable-tcl=/usr/lib/tcl \
		--enable-tk=/usr/lib/tk \
		--enable-sendmail=/usr/sbin/sendmail \
		--enable-inews=/usr/bin/inews

override_dh_auto_build:
	dh_auto_build --verbose
	(cd doc && $(MAKE) html)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	# run autopkgtest
	chmod +x debian/tests/decode-noninteractive && \
		mkdir debian/tests/output && \
		env AUTOPKGTEST_TMP=$(CURDIR)/debian/tests/output \
		LD_LIBRARY_PATH=$(CURDIR)/uulib \
		PATH=$(CURDIR)/unix:$$PATH \
		debian/tests/decode-noninteractive && \
		rm -rvf $(CURDIR)/debian/tests/output
else
	@echo 'Not running testsuite, "nocheck" in $$DEB_BUILD_OPTIONS'
endif

override_dh_auto_install:
	for i in usr/share/man/man1 usr/bin ; do \
		test -d debian/tmp/$$i || mkdir -p debian/tmp/$$i ; \
		done
	dh_auto_install --verbose

%:
	dh $@