File: rules

package info (click to toggle)
partconf 1.07
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 628 kB
  • ctags: 102
  • sloc: ansic: 1,357; makefile: 79; sh: 7
file content (57 lines) | stat: -rwxr-xr-x 1,383 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
#!/usr/bin/make -f

PACKAGES=$(shell dh_listpackages)
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)

build: build-stamp
build-stamp:
	dh_testdir
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	$(MAKE) small
else
	$(MAKE) DEBUG=1
endif
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) clean
	dh_clean
	-for p in $(PACKAGES); do \
	    rm -f debian/$$p.postinst; \
	done

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	install -m755 -d debian/partconf-find-partitions/usr/lib/partconf \
			 debian/partconf-mkfstab/usr/lib/partconf \
			 debian/partconf-mkfstab/var/lib/partconf/fstab.d
	install -m755 partconf debian/partconf.postinst
	install -m755 find-partitions debian/partconf-find-partitions/usr/lib/partconf
	install -m755 mkfstab debian/partconf-mkfstab/usr/lib/partconf
	#install -m755 mkfstab debian/partconf-mkfstab.postinst
	install -m644 fstab-common \
		debian/partconf-mkfstab/var/lib/partconf/fstab.d/common

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir -s
	dh_testroot -s
	dh_installdebconf -s
ifeq ($(ARCH),mips)
	install -m755 debian/partconf.isinstallable debian/partconf/DEBIAN/isinstallable
endif
	dh_compress -s
	dh_fixperms -s
	dh_installdeb -s
	dh_shlibdeps -s
	dh_gencontrol -s
	dh_builddeb -s

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