File: rules

package info (click to toggle)
base-installer 1.115%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,848 kB
  • ctags: 124
  • sloc: sh: 1,530; ansic: 633; makefile: 51; perl: 50
file content (33 lines) | stat: -rwxr-xr-x 810 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
#! /usr/bin/make -f
%:
	dh $@

ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)

override_dh_auto_build: debian/templates.gen
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	$(MAKE) small
else
	$(MAKE) DEBUG=1
endif

debian/templates.gen: debian/templates-arch
	debian/templates-build.pl $(ARCH) < $< > $@
	# give the new templates file the same mtime as the input file, so
	# that po2debconf doesn't decide that it needs to run
	# debconf-updatepo
	touch -mr $< $@

test:
	dh_auto_test

override_dh_install:
	dh_install
	if [ -e "kernel/$(ARCH).sh" ]; then \
		install -D -m644 "kernel/$(ARCH).sh" \
		                 debian/bootstrap-base/usr/lib/base-installer/kernel.sh; \
	fi

override_dh_installdebconf:
	dh_installdebconf
	(echo ; cat debian/templates.gen) >> debian/bootstrap-base/DEBIAN/templates