File: rules

package info (click to toggle)
apsfilter 7.2.6-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,496 kB
  • sloc: sh: 450; ansic: 236; perl: 175; makefile: 159
file content (71 lines) | stat: -rwxr-xr-x 2,186 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#! /usr/bin/make -f

clean:
	dh_testdir
	dh_testroot
	dh_clean SETUP.cfg perf.log
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f configure-stamp build-stamp

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.
	./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
		--with-awk=/usr/bin/awk --with-sendmail=/usr/sbin/sendmail \
		--with-shell=/bin/bash
	touch configure-stamp

build: configure-stamp build-stamp
build-stamp:
	dh_testdir

	# Add here commands to compile the package.
	$(MAKE)

	touch build-stamp

binary: binary-arch binary-indep

binary-arch: build

binary-indep: build
	dh_testdir
	dh_testroot
	dh_clean
	# The upstream Makefile is BSD-specific (e.g. refers to make when it
	# should refer to $${.MAKE}), and doesn't create all the necessary
	# directories (e.g. /usr/man), so it's easier to do this by hand.
	dh_installdirs
	cp -p SETUP debian/apsfilter/usr/sbin/apsfilterconfig
	cp -a --parents bin/* setup/* driver/* template/README \
			template/apsfilterrc \
			debian/apsfilter/usr/share/apsfilter
	rm debian/apsfilter/usr/share/apsfilter/bin/*.in
	mv debian/apsfilter/usr/share/apsfilter/bin/aps2file \
		debian/apsfilter/usr/share/apsfilter/bin/apspreview \
		debian/apsfilter/usr/share/apsfilter/bin/apsfilter-bug \
			debian/apsfilter/usr/bin
	cp -p uniprint/*.upp debian/apsfilter/usr/share/ghostscript/common
	dh_installdebconf
	# If you think more stuff should be installed, first bug upstream to
	# change the Makefile -- forks are bad, okay?
	dh_installdocs ANNOUNCE FAQ HOWTO-BUGREPORTS \
		       doc/README.TeX doc/handbook.html doc/paper
	dh_installman man/*.?
	dh_installchangelogs ChangeLog
	# FHS compliance requires some layout changes, but these are made
	# transparent with symlinks.
	dh_link \
	  usr/sbin/apsfilterconfig usr/share/apsfilter/SETUP \
	  etc/apsfilter/SETUP.cfg usr/share/apsfilter/SETUP.cfg \
	  var/lib/apsfilter/perf.log usr/share/apsfilter/perf.log \
	  usr/share/man/man1/apsfilter.1 usr/share/man/man8/apsfilterconfig.8
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: clean build binary binary-arch binary-indep