Rework debian/, following current best practices
[grml-live.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 %:
10         dh $@
11
12 override_dh_binary:
13         dh_binary
14
15 override_dh_install:
16         egrep -q "GRML_LIVE_VERSION=.*UNRELEASED" grml-live || \
17                         (echo "Wrong version in grml-live" && exit 2)
18         # build docs
19         cd docs && $(MAKE) && cd ../
20         # adjust version number inside grml-live executable
21         sed -i -e "s/GRML_LIVE_VERSION='\*\*\*UNRELEASED\*\*\*'/GRML_LIVE_VERSION='$(DEB_VERSION)'/" grml-live
22         find . -name grml-live.8
23         dh_install
24
25 override_dh_fixperms:
26         dh_fixperms
27         # make sure they are executable:
28         chmod 755 debian/grml-live/etc/grml/fai/config/hooks/*