Release new version 0.19.7
[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         dh_prep
21         rm -rf debian/grml-etc-core/
22         (cd $(CURDIR)/doc && $(MAKE) clean)
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_prep
28         dh_installdirs
29         # Add here commands to install the package into debian/grml-etc-core.
30         cp -a etc/ debian/grml-etc-core/
31         cp -a usr_share_grml/ debian/grml-etc-core/usr/share/grml
32
33 # Build architecture-dependent files here.
34 binary-arch: build install
35 # We have nothing to do by default.
36
37 # Build architecture-independent files here.
38 binary-indep: build install
39         dh_testdir
40         dh_testroot
41         dh_installchangelogs 
42         dh_installdocs
43         (cd $(CURDIR)/doc && $(MAKE) all)
44         dh_installman $(CURDIR)/doc/grmlzshrc.5
45         dh_compress
46         mkdir -p debian/grml-etc-core/usr/share/lintian/overrides/
47         cp -av debian/overrides debian/grml-etc-core/usr/share/lintian/overrides/grml-etc-core
48         dh_fixperms
49         dh_installdeb
50         #find debian/grml-etc-core/etc -type f ! -name \*.xpm ! -name \*.png -print | \
51         #sed -e 's#^debian/grml-etc-core##g' > debian/grml-etc-core/DEBIAN/conffiles
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 binary: binary-indep binary-arch
58 .PHONY: build clean binary-indep binary-arch binary install