File: rules

package info (click to toggle)
dact 0.8.42-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,412 kB
  • sloc: ansic: 5,923; sh: 2,748; makefile: 142
file content (54 lines) | stat: -rwxr-xr-x 1,128 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

PACKAGE = dact

# Build process modifies these files.
FILE_LIST_PRESERVE = \
 Makefile.dep \
 Makefile.in \
 config.h.in \
 config.guess \
 config.sub \
 configure.in \
 configure \
 dact.conf \
 Docs/dact.1 \
 comp_lzo*.lnk

include debian/debian-save-restore.mk

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

override_dh_auto_clean:
	$(file-state-restore-copy)
	$(file-state-save)
	dh_auto_clean
	# Undo Makefile.dep change *now*
	$(file-state-restore-copy)

override_dh_builddeb:
	$(file-state-restore-copy)
	dh_builddeb

override_dh_auto_configure:
	cp -vf /usr/share/misc/config.sub .
	cp -vf /usr/share/misc/config.guess .
	autoreconf -fi
	dh_auto_configure -- \
		--disable-modules \
		--enable-debianupgrade \
		--prefix=\$${DESTDIR} \
		--mandir=\$${prefix}/usr/share/man \
		--sysconfdir=\$${prefix}/etc \
		--exec-prefix=\$${prefix}/usr \
		--datadir=\$${prefix}/usr/lib \
		--libdir=\$${prefix}/usr/lib/dact
	# Update to latest library
	sed -i 's/llzo$$/llzo2/' *.lnk

%:
	dh $@

# End of file