File: rules

package info (click to toggle)
perforate 1.2-5.1
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 104 kB
  • ctags: 16
  • sloc: ansic: 178; perl: 116; makefile: 41; sh: 3
file content (48 lines) | stat: -rwxr-xr-x 886 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
#!/usr/bin/make -f

#export DH_COMPAT=5

CFLAGS := -O2 -Wall
ifneq ($(findstring debug,$(DEB_BUILD_OPTIONS)),)
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif

clean:
	dh_testdir
	dh_testroot
	dh_clean build.stamp zum

build: build.stamp
build.stamp:
	dh_testdir
	$(MAKE) CFLAGS="$(CFLAGS)"
	> $@

binary: binary-arch binary-indep

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs usr/bin
	install finddup findstrip zum debian/perforate/usr/bin
	dh_installdocs README.perforate
	dh_installman debian/*.1
	dh_link usr/bin/finddup usr/bin/nodup
	dh_link usr/share/man/man1/finddup.1.gz usr/share/man/man1/nodup.1.gz
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: build

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