File: rules

package info (click to toggle)
webfs 1.21%2Bds1-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 980 kB
  • ctags: 1,163
  • sloc: ansic: 3,256; sh: 362; makefile: 25; perl: 7
file content (35 lines) | stat: -rwxr-xr-x 743 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

builddir = debian/webfs
installdir = $(CURDIR)/$(builddir)

clean:
	dh $@

build:
	[ -f Make.config ] || cp debian/Make.config ./
	dh --before dh_auto_build $@
	$(MAKE) prefix=/usr
	dh --remaining $@

install: build
	$(MAKE) install  \
			prefix=$(installdir)/usr \
			mandir=$(installdir)/usr/share/man
	install -d $(installdir)/usr/share/webfs
	install -m 0644 debian/webfsd.conf \
		$(installdir)/usr/share/webfs/webfsd.conf.auto
 
binary-arch: install
	dh_testroot -a
	dh_installdirs -a
	#dh --before dh_auto_install $@
	dh_install --sourcedir=$(builddir)
	dh_installchangelogs -a -k README
	dh --after dh_auto_install $@

binary-indep:

binary: binary-arch

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