File: rules

package info (click to toggle)
base-config 2.53.10.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,072 kB
  • ctags: 36
  • sloc: sh: 1,755; makefile: 101; perl: 48
file content (67 lines) | stat: -rwxr-xr-x 1,703 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
#!/usr/bin/make -f

CVSGET=cvs -d":pserver:anonymous@cvs.debian.org:/cvs/webwml" \
	co -p webwml/english/mirror/Mirrors.masterlist

build:
	# Freshen Mirrors.masterlist file, but allow failure.
	if [ "$$ONLINE" != n ]; then \
		if $(CVSGET) > Mirrors.masterlist.new \
		   && [ -s "Mirrors.masterlist.new" ]; then \
			mv -f Mirrors.masterlist.new Mirrors.masterlist; \
		else \
			rm -f Mirrors.masterlist.new; \
		fi; \
	fi

	$(MAKE) -C po

clean:
	dh_testdir
	dh_testroot
	dh_clean
	make -C po clean
	if [ ! -s "Mirrors.masterlist" ]; then \
		$(CVSGET) > Mirrors.masterlist; \
	fi

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/share/lintian/overrides
	cp debian/lintian-override debian/base-config/usr/share/lintian/overrides/base-config
	dh_install apt-setup tzsetup base-config termwrap validlocale usr/sbin/
	dh_install Mirrors.masterlist usr/lib/base-config/
	dh_install lib/* usr/lib/base-config/
	make -C po install prefix=`pwd`/debian/base-config

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdebconf

	# Merge in all templates.
	echo >> debian/base-config/DEBIAN/templates
	po2debconf --podir=debian/po apt-setup.templates >> debian/base-config/DEBIAN/templates
	echo >> debian/base-config/DEBIAN/templates
	po2debconf --podir=debian/po tzsetup.templates >> debian/base-config/DEBIAN/templates

	dh_installdocs
	dh_installman *.8
	dh_installinfo
	dh_installchangelogs
	dh_installlogrotate
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: build install

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