File: rules

package info (click to toggle)
ctrlproxy 3.0.7-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 1,668 kB
  • ctags: 2,045
  • sloc: ansic: 15,358; sh: 2,805; xml: 1,078; python: 346; makefile: 302; perl: 18
file content (46 lines) | stat: -rwxr-xr-x 909 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
#!/usr/bin/make -f

build: build-stamp

build-stamp:
	dh_testdir
	./configure --prefix=/usr --includedir=/usr/include/ctrlproxy --mandir=/usr/share/man
	$(MAKE)
ifneq (,$(findstring check,$(DEB_BUILD_OPTIONS)))
	$(MAKE) check 
endif
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	dh_clean
	$(MAKE) distclean
	rm -f build-stamp

binary-indep: build

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) install DESTDIR=`pwd`/debian/tmp
	rm -f `pwd`/debian/tmp/usr/bin/linestack-cmd
	dh_install --sourcedir=debian/tmp -a --list-missing --fail-missing
	dh_strip -a
	dh_installdocs -a
	dh_installchangelogs -a 
	dh_installexamples -a 
	dh_installman -a doc/ctrlproxy-admin.1
	dh_compress -a
	dh_fixperms -a
	dh_shlibdeps -a
	dh_installdeb -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

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