Update debian/rules
[grml-desktop.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 configure-stamp:
13         dh_testdir
14         touch configure-stamp
15
16 build: build-stamp
17
18 build-stamp: configure-stamp 
19         dh_testdir
20         touch $@
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp
26         dh_clean 
27
28 install: build
29         dh_testdir
30         dh_testroot
31         dh_clean -k 
32         dh_installdirs etc/skel
33
34         cp -a etc/skel debian/grml-desktop/etc/
35
36 # Build architecture-dependent files here.
37 binary-arch: build install
38 # We have nothing to do by default.
39
40 # Build architecture-independent files here.
41 binary-indep: build install
42         dh_testdir
43         dh_testroot
44         dh_installchangelogs 
45         dh_installdocs
46         dh_installexamples
47         dh_installman
48         dh_link
49         dh_strip
50         dh_compress
51         mkdir -p debian/grml-desktop/usr/share/lintian/overrides/
52         cp -av debian/overrides debian/grml-desktop/usr/share/lintian/overrides/grml-desktop
53         dh_fixperms
54         dh_installdeb
55         find debian/grml-desktop/etc -type f ! -name \*.xpm ! -name \*.png -print | \
56         sed -e 's#^debian/grml-desktop##g' > debian/grml-desktop/DEBIAN/conffiles
57         dh_shlibdeps
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install