1 #!/usr/bin/make -f
2 # Copyright Bernd Eckenfels Thu, 6 Jan 2000 10:04:56 +0100. It's GPL
3 # Made with the aid of debmake, by Christoph Lameter,
4 # based on the sample debian/rules file for GNU hello by Ian Jackson.
6 package=cadaver
8 build:
9 $(checkdir)
10 -rm config.cache
11 # this configure will watch DEB_BUILD_OPTIONS for CFLAGS (-g)
12 ./configure --prefix=/usr --enable-warnings --with-included-neon --enable-netrc --without-ssl
13 $(MAKE)
14 touch build
16 clean:
17 $(checkdir)
18 -rm -f build
19 -$(MAKE) clean
20 -(cd po ; rm -f Makefile.in POTFILES cat-id-tbl.c stamp-cat-id ; $(MAKE) distclean)
21 -(cd intl ; $(MAKE) distclean)
22 -(cd libneon ; $(MAKE) clean ; rm Makefile)
23 -rm -f `find . -name "*~"`
24 -rm -f config.h config.status config.log config.cache Makefile
25 -rm -rf debian/tmp debian/files* core debian/substvars
27 binary-indep: checkroot build
28 $(checkdir)
29 # There are no architecture-independent files to be uploaded
30 # generated by this package. If there were any they would be
31 # made here.
33 binary-arch: checkroot build
34 $(checkdir)
35 -rm -rf debian/tmp
36 install -d debian/tmp
37 cd debian/tmp && install -d `cat ../dirs`
38 $(MAKE) install prefix=`pwd`/debian/tmp/usr
39 # Must have debmake installed for this to work. Otherwise please copy
40 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd
41 debstd ChangeLog INTEROP FAQ NEWS README TODO THANKS cadaver.lsm.in
42 dpkg-gencontrol -isp
43 chown -R root.root debian/tmp
44 chmod -R go=rX debian/tmp
45 dpkg --build debian/tmp ..
47 define checkdir
48 test -f debian/rules
49 endef
51 binary: binary-indep binary-arch
53 checkroot:
54 $(checkdir)
55 test root = "`whoami`"
57 .PHONY: binary binary-arch binary-indep clean checkroot