]> arthur.barton.de Git - netatalk.git/blob - distrib/debian/rules
Inserted changelog of version 1.5pre6-6.
[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                 --with-did=last
22         $(MAKE)
23
24         touch build-stamp
25
26 clean:
27         dh_testdir
28         rm -f build-stamp
29         -$(MAKE) distclean
30         dh_clean
31
32 binary: binary-arch binary-indep
33
34 binary-indep: build
35
36 binary-arch: build
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         dh_installdirs
41
42         $(MAKE) install DESTDIR="`pwd`/debian/tmp" # CFLAGS="-Wall -O2"
43
44         dh_installdocs
45         dh_installinit --update-rcd-params="defaults 50 50"
46         dh_installman
47         dh_undocumented
48         dh_installchangelogs ChangeLog
49
50         # Manually remove a header file that is shipped with glibc and
51         # the Linux Kernel.
52         rm debian/tmp/usr/include/netatalk/at.h
53
54         dh_movefiles
55         rmdir debian/tmp/usr/include/atalk debian/tmp/usr/include/netatalk
56         rmdir debian/tmp/usr/include
57         rmdir debian/tmp/usr/share/aclocal
58         rmdir debian/tmp/usr/share/man/man3 debian/tmp/usr/share/man/man4
59
60         dh_strip
61         dh_compress
62         dh_fixperms
63         dh_installdeb
64         dh_shlibdeps
65         dh_gencontrol
66         dh_md5sums
67         dh_builddeb
68
69 .PHONY: clean binary binary-arch binary-indep