]> arthur.barton.de Git - netatalk.git/blob - distrib/debian/rules
Upped version number of CVS release.
[netatalk.git] / distrib / debian / rules
1 #! /usr/bin/make -f
2
3 #export DH_VERBOSE=1
4
5 # support the DEB_BUILD_OPTIONS variable (partly stolen from gnome-utils)
6 CFLAGS :=
7 LDFLAGS :=
8 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
9   CFLAGS += -g
10   LDFLAGS += -g
11 endif
12 export CFLAGS
13 export LDFLAGS
14
15 build: build-stamp
16 build-stamp:
17         dh_testdir
18
19         ./configure --with-cflags=-O2 --with-shadow \
20                 --enable-fhs --with-tcp-wrappers --enable-timelord
21         $(MAKE)
22
23         touch build-stamp
24
25 clean:
26         dh_testdir
27         rm -f build-stamp
28         -$(MAKE) distclean
29         dh_clean
30
31 binary: binary-arch binary-indep
32
33 binary-indep: build
34
35 binary-arch: build
36         dh_testdir
37         dh_testroot
38         dh_clean -k
39         dh_installdirs
40
41         $(MAKE) install DESTDIR="`pwd`/debian/tmp" # CFLAGS="-Wall -O2"
42
43         dh_installdocs
44         dh_installinit --update-rcd-params="defaults 50 50"
45         dh_installman
46         dh_undocumented
47         dh_installchangelogs ChangeLog
48
49         # Manually remove a header file that is shipped with glibc and
50         # the Linux Kernel.
51         rm debian/tmp/usr/include/netatalk/at.h
52
53         dh_movefiles
54         rmdir debian/tmp/usr/include/atalk debian/tmp/usr/include/netatalk
55         rmdir debian/tmp/usr/include
56         rmdir debian/tmp/usr/share/aclocal
57         rmdir debian/tmp/usr/share/man/man3 debian/tmp/usr/share/man/man4
58
59         dh_strip
60         dh_compress
61         dh_fixperms
62         dh_installdeb
63         dh_shlibdeps
64         dh_gencontrol
65         dh_md5sums
66         dh_builddeb
67
68 .PHONY: clean binary binary-arch binary-indep