File: rules

package info (click to toggle)
inadyn 1.96-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 356 kB
  • ctags: 518
  • sloc: ansic: 3,438; sh: 151; makefile: 96
file content (73 lines) | stat: -rwxr-xr-x 1,366 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
68
69
70
71
72
73
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DH_COMPAT=4
export DH_OPTIONS=

CFLAGS+=$(if $(findstring debug,$(DEB_BUILD_OPTIONS)),-g)
CFLAGS+=$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)

build: patch 
build: build-stamp
build-stamp:
	dh_testdir
	$(MAKE) -f makefile all
	touch $@

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp 
	-$(MAKE) -f makefile cleanall
	dh_clean

patch: patch-stamp
patch-stamp:
	# dpatch apply-all
	touch $@

unpatch: 
	# - dpatch deapply-all
	rm -rf debian/patched patch-stamp

uninstall:
	dh_testdir
	dh_testroot
	rm -f install-stamp
	dh_clean -k

install: build
install: install-stamp
install-stamp: DH_OPTIONS=
install-stamp:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/sbin
	install $(CURDIR)/bin/linux/inadyn $(CURDIR)/debian/inadyn/usr/sbin 
	dh_installdocs
	dh_installchangelogs debian/changes
	dh_link
	touch $@

binary-indep: DH_OPTIONS=-i
binary-indep: install

binary-arch: DH_OPTIONS=-a
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installman man/inadyn.8 man/inadyn.conf.5
	dh_installexamples debian/inadyn.conf 
	dh_strip
	dh_compress
	dh_fixperms 
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol 
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install uninstall patch unpatch