File: rules

package info (click to toggle)
cd-circleprint 0.7.0-6
  • links: PTS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 400 kB
  • sloc: perl: 1,643; makefile: 49
file content (41 lines) | stat: -rwxr-xr-x 786 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	touch build

clean:
	dh_testdir
	rm -f build
	[ ! -f Makefile ] || $(MAKE) clean DESTDIR=`pwd`/debian/cd-circleprint
	rm -f `find . -name "*~"`
	rm -rf debian/files* core debian/substvars
	dh_clean

binary-indep: checkroot build
	dh_testdir
	rm -rf debian/cd-circleprint
	install -d debian/cd-circleprint
	$(MAKE) install DESTDIR=`pwd`/debian/cd-circleprint
	dh_installdocs
	dh_installchangelogs CHANGELOG
	dh_installmenu
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: checkroot build

binary: binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

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