Enable cpu frequency scaling on all hardware by default.
[grml-autoconfig.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: build-stamp
13
14 build-stamp:
15         dh_testdir
16         (cd tests && ./run_tests.sh)
17         (cd doc && $(MAKE))
18
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp
25         cd doc && $(MAKE) clean && cd ..
26
27         dh_clean
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k
33         dh_installdirs etc/grml etc/init.d usr/sbin usr/bin usr/share/doc/grml-saveconfig usr/lib/grml-autoconfig
34
35         # Add here commands to install the package into debian/grml-autoconfig.
36         install -m 755 grml-autoconfig      debian/grml-autoconfig/etc/init.d/grml-autoconfig
37         install -m 644 autoconfig           debian/grml-autoconfig/etc/grml/autoconfig
38         install -m 644 autoconfig.local     debian/grml-autoconfig/etc/grml/autoconfig.local
39         install -m 755 autoconfig.functions debian/grml-autoconfig/etc/grml/autoconfig.functions
40         install -m 644 language-functions   debian/grml-autoconfig/etc/grml/language-functions
41         install -m 755 sbin/grml-autoconfig debian/grml-autoconfig/usr/sbin/grml-autoconfig
42         install -m 755 grml-bootsplash      debian/grml-autoconfig/usr/bin/grml-bootsplash
43
44         install -m 755 bin/mkpersistenthome debian/grml-autoconfig/usr/bin/mkpersistenthome
45         install -m 755 bin/restore-config debian/grml-autoconfig/usr/bin/restore-config
46         install -m 755 bin/save-config debian/grml-autoconfig/usr/bin/save-config
47         install -m 755 lib/pump-runparts debian/grml-autoconfig/usr/lib/grml-autoconfig/pump-runparts
48
49         # just as a "backup" solution:
50         cp -a etc/* debian/grml-autoconfig/etc/
51
52 # Build architecture-dependent files here.
53 binary-arch: build install
54 # We have nothing to do by default.
55
56 # Build architecture-independent files here.
57 binary-indep: build install
58         dh_testdir
59         dh_testroot
60         dh_installchangelogs
61         dh_installdocs doc/grml-autoconfig.1.html doc/grml-autoconfig.8.html \
62                         doc/grml-bootsplash.1.html doc/mkpersistenthome.1.html \
63                         doc/restore-config.1.html doc/save-config.1.html
64         dh_installman doc/grml-autoconfig.1.gz doc/grml-autoconfig.8.gz \
65                         doc/grml-bootsplash.1.gz doc/mkpersistenthome.1.gz \
66                         doc/restore-config.1.gz doc/save-config.1.gz
67         # backward compability:
68         dh_link /usr/share/doc/grml-autoconfig/grml-autoconfig.1.html /usr/share/doc/grml-saveconfig/grml-config.html
69         dh_strip
70         dh_compress
71         mkdir -p $(CURDIR)/debian/grml-autoconfig/usr/share/lintian/overrides/
72         cp -av debian/overrides $(CURDIR)/debian/grml-autoconfig/usr/share/lintian/overrides/grml-autoconfig
73         dh_fixperms
74         dh_installdeb
75         dh_shlibdeps
76         dh_gencontrol
77         dh_md5sums
78         dh_builddeb
79
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary install