f69535b1d2489c724f1f0cfbfa0542574c28756c
[grml-scripts-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         ( cd $(CURDIR)/compile/ && make )
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp
20
21         # Add here commands to clean up after the build process.
22         rm -rf $(CURDIR)/debian/grml-scripts-core/
23         ( cd compile ; make clean )
24
25         dh_clean
26
27 install: build
28         dh_testdir
29         dh_testroot
30         dh_clean -k
31         dh_installdirs
32
33         # Add here commands to install the package into debian/grml-scripts-core.
34         cp -a usr_bin/*         debian/grml-scripts-core/usr/bin/
35         install -m 755 compile/cpu-screen             debian/grml-scripts-core/usr/bin/cpu-screen
36         install -m 755 compile/ip-screen              debian/grml-scripts-core/usr/bin/ip-screen
37
38 # Build architecture-independent files here.
39 binary-indep:
40
41 # Build architecture-dependent files here.
42 binary-arch: build install
43         dh_testdir
44         dh_testroot
45         dh_installchangelogs
46         dh_installdocs
47         dh_installman manpages/grml-scripts-core.1
48         dh_link /usr/share/man/man1/grml-scripts-core.1.gz /usr/share/man/man1/code2color.1.gz \
49                 /usr/share/man/man1/grml-scripts-core.1.gz /usr/share/man/man1/cpu-screen.1.gz \
50                 /usr/share/man/man1/grml-scripts-core.1.gz /usr/share/man/man1/cpu-screen.sh.1.gz \
51                 /usr/share/man/man1/grml-scripts-core.1.gz /usr/share/man/man1/grml-screen.1.gz \
52                 /usr/share/man/man1/grml-scripts-core.1.gz /usr/share/man/man1/ip-screen.1.gz \
53                 /usr/share/man/man1/grml-scripts-core.1.gz /usr/share/man/man1/lesspipe.sh.1.gz
54         dh_strip
55         dh_compress
56         mkdir -p $(CURDIR)/debian/grml-scripts-core/usr/share/lintian/overrides/
57         cp -av debian/overrides $(CURDIR)/debian/grml-scripts-core/usr/share/lintian/overrides/grml-scripts-core
58         dh_fixperms
59         dh_installdeb
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary install