]> git.donarmstrong.com Git - unscd.git/blob - debian/rules
* fix the mode of the nscd configuration file
[unscd.git] / debian / rules
1 #!/usr/bin/make -f
2
3 #DH_VERBOSE = 1
4
5
6 PREFIX=$(shell pwd)/debian/unscd/
7
8 CFLAGS = -Wall -g
9
10 INSTALL=install
11
12 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
13     CFLAGS += -O0
14 else
15     CFLAGS += -O2
16 endif
17
18
19 build: build-stamp
20 build-stamp:
21         dh_testdir
22
23         gcc $(CFLAGS) -o nscd nscd.c
24
25         touch $@
26
27 clean:
28         dh_testdir
29         dh_testroot
30
31         rm -f build-stamp
32
33         rm -f nscd
34
35         dh_clean
36
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42         $(INSTALL) -d $(PREFIX)/usr/sbin/
43         $(INSTALL) -t $(PREFIX)/usr/sbin/ nscd
44         $(INSTALL) -d $(PREFIX)/etc/
45         $(INSTALL) -m644 -t $(PREFIX)/etc/ debian/nscd.conf
46
47 binary-indep:
48
49 binary-arch: build install
50         dh_testdir
51         dh_testroot
52         dh_installchangelogs 
53         dh_installdocs
54         dh_installman debian/nscd.8
55         dh_installinit
56         dh_link
57         dh_strip
58         dh_compress
59         dh_fixperms
60         dh_installdeb
61         dh_shlibdeps
62         dh_gencontrol
63         dh_md5sums
64         dh_builddeb
65
66 binary: binary-arch
67 .PHONY: build clean binary-arch binary-indep binary install