7bf93ff6a4596eb451c31424acdb33ba44940610
[grml-etc-core.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 build: build-stamp
10
11 build-stamp:
12         dh_testdir
13
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp
20
21         dh_clean 
22         rm -rf debian/grml-etc-core/
23         (cd $(CURDIR)/doc && $(MAKE) clean)
24
25 install: build
26         dh_testdir
27         dh_testroot
28         dh_clean -k 
29         dh_installdirs
30
31         # Add here commands to install the package into debian/grml-etc-core.
32         cp -a etc/ debian/grml-etc-core/
33         cp -a usr_share_grml/ debian/grml-etc-core/usr/share/grml
34
35 # Build architecture-dependent files here.
36 binary-arch: build install
37 # We have nothing to do by default.
38
39 # Build architecture-independent files here.
40 binary-indep: build install
41         dh_testdir
42         dh_testroot
43         dh_installchangelogs 
44         dh_installdocs
45         (cd $(CURDIR)/doc && $(MAKE) all)
46         dh_installman $(CURDIR)/doc/grmlzshrc.5
47         dh_compress
48         mkdir -p debian/grml-etc-core/usr/share/lintian/overrides/
49         cp -av debian/overrides debian/grml-etc-core/usr/share/lintian/overrides/grml-etc-core
50         dh_fixperms
51         dh_installdeb
52         #find debian/grml-etc-core/etc -type f ! -name \*.xpm ! -name \*.png -print | \
53         #sed -e 's#^debian/grml-etc-core##g' > debian/grml-etc-core/DEBIAN/conffiles
54         dh_shlibdeps
55         dh_gencontrol
56         dh_md5sums
57         dh_builddeb
58
59 binary: binary-indep binary-arch
60 .PHONY: build clean binary-indep binary-arch binary install