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