summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules54
1 files changed, 12 insertions, 42 deletions
diff --git a/debian/rules b/debian/rules
index 6094713..4173412 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,56 +1,26 @@
#!/usr/bin/make -f
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp
+%:
+ dh ${@}
- $(MAKE) -C manpages clean
-
- dh_clean
-
-build: build-stamp
-build-stamp:
- dh_testdir
+override_dh_auto_clean:
+ $(MAKE) -C manpages
+override_dh_auto_build:
$(MAKE) -C manpages
- touch build-stamp
+override_dh_auto_install:
+ dh_auto_install
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
+ $(MAKE) DESTDIR=$(CURDIR)/debian/live-initramfs install
- # Installing package
- $(MAKE) install DESTDIR=$(CURDIR)/debian/live-initramfs
+ mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper
- # Removing double files
rm -f debian/live-initramfs/usr/share/doc/live-initramfs/COPYING
rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog
- mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper
- # Installing bug control
- install -D -m 0644 debian/bug/live-initramfs.presubj debian/live-initramfs/usr/share/bug/live-initramfs/presubj
- install -D -m 0755 debian/bug/live-initramfs.script debian/live-initramfs/usr/share/bug/live-initramfs/script
-
-binary: binary-indep
-
-binary-arch:
-
-binary-indep: install
- dh_testdir
- dh_testroot
+override_dh_installchangelogs:
dh_installchangelogs docs/ChangeLog
- dh_installdocs
- dh_install
+
+override_dh_installinit:
dh_installinit --no-restart-on-upgrade --no-start -- start 89 0 6 .
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-.PHONY: clean build install binary binary-arch binary-indep