Create /etc/X11 accordingly in debian/rules
[grml-x.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 build:
13         make clean
14         make doc
15
16 build-stamp:
17         dh_testdir
18         # Add here commands to compile the package.
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp html-stamp man-stamp
25
26         # Add here commands to clean up after the build process.
27         make clean
28         dh_clean
29
30 install: build
31         dh_testdir
32         dh_testroot
33         dh_clean -k
34         dh_installdirs etc/X11 usr/bin usr/share/grml
35
36         # Add here commands to install the package into debian/grml-x.
37         install -m 755 grml-x     debian/grml-x/usr/bin/grml-x
38         cp -a etc/X11/*           debian/grml-x/etc/X11/
39         cp -a usr_share_grml/zsh/ debian/grml-x/usr/share/grml/
40
41 # Build architecture-dependent files here.
42 binary-arch: build install
43 # We have nothing to do by default.
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47         dh_testdir
48         dh_testroot
49         dh_installchangelogs
50         dh_installdocs
51         dh_installexamples
52         dh_installman grml-x.1
53         dh_link
54         dh_strip
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_shlibdeps
59         dh_gencontrol
60         dh_md5sums
61         dh_builddeb
62
63 binary: binary-indep binary-arch
64 .PHONY: build clean binary-indep binary-arch binary install