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.
9 # Uncomment this to turn on verbose mode.
16 cd docs && $(MAKE) && cd ../
24 # Add here commands to clean up after the build process.
25 cd docs && $(MAKE) clean && cd ../
33 dh_installdirs etc/grml/fai/live-initramfs usr/sbin usr/share/doc/grml-live \
34 usr/share/grml-live usr/share/grml-live/buildd
36 # Add here commands to install the package into debian/grml-live.
37 cp -a etc debian/grml-live/
38 cp -a examples debian/grml-live/usr/share/doc/grml-live/
39 cp -a templates debian/grml-live/usr/share/grml-live/
40 cp -a scripts debian/grml-live/usr/share/grml-live/
41 cp -a patches debian/grml-live/usr/share/grml-live/
42 cp -a buildd/*.sh debian/grml-live/usr/share/grml-live/buildd/
43 install -o root -m 640 buildd/grml-buildd.conf debian/grml-live/etc/grml/grml-buildd.conf
44 install -o root -m 755 grml-live debian/grml-live/usr/sbin/grml-live
46 # Build architecture-independent files here.
47 binary-indep: build install
48 # We have nothing to do by default.
50 # Build architecture-dependent files here.
51 binary-arch: build install
55 dh_installdocs docs/grml-live.html
57 dh_installman docs/grml-live.8
61 mkdir -p $(CURDIR)/debian/grml-live/usr/share/lintian/overrides/
62 cp -av debian/overrides $(CURDIR)/debian/grml-live/usr/share/lintian/overrides/grml-live
64 # make sure they are executable:
65 chmod 755 debian/grml-live/etc/grml/fai/config/hooks/*
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install