File: rules

package info (click to toggle)
dhttpd 1.02a-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 196 kB
  • ctags: 62
  • sloc: cpp: 713; makefile: 65; sh: 29
file content (57 lines) | stat: -rwxr-xr-x 1,136 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

export DH_COMPAT=2

build:
build-stamp:
	dh_testdir
	make -C src
	touch build-stamp

clean:
	dh_testdir
	rm -f build-stamp
	-cd src ; make clean
	rm -f `find . -name "*~"`
	rm -rf debian/tmp debian/files* core debian/substvars
	dh_clean

install: build-stamp
	dh_testroot
	dh_testdir
	dh_installdirs
	install src/dhttpd debian/dhttpd/usr/bin
	#ln -s /usr/doc debian/tmp/var/www/doc
	mkdir -p debian/tmp/etc/default
	install debian/default debian/tmp/etc/default/dhttpd

binary-indep: install
	dh_testroot
	dh_testdir
	@echo No arch-indep things!

binary-arch: install
	dh_testroot
	dh_testdir
	dh_installdirs
	dh_installdocs README AUTHOR powered_by_dhttpd.gif websample/dhttpd102.gif websample/index.html
	dh_installexamples
	dh_installchangelogs CHANGES
	dh_installmenu
	dh_installcron
	dh_installmanpages -pdhttpd
	dh_installinit  -pdhttpd --update-rcd-params='defaults 50' --init-script=dhttpd 
#	dh_movefiles
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
#	dh_makeshlibs
	dh_installdeb
	dh_md5sums
	dh_builddeb

binary:	binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean