3
include /usr/share/dpatch/dpatch.make
21
$(MAKE) install DESTDIR=$(CURDIR)/debian/makedumpfile
22
install -D -m755 debian/initramfs-hook \
23
debian/makedumpfile/usr/share/initramfs-tools/hooks/makedumpfile
27
binary-arch: build install
42
binary: binary-indep binary-arch
43
.PHONY: build clean binary-indep binary-arch binary
3
# Figure out the git branch we're on
4
branch = $(shell git symbolic-ref HEAD 2>/dev/null | sed s:refs/heads/::)
9
override_dh_auto_install:
11
install -D -m755 debian/makedumpfile-static.initramfs-hook \
12
debian/makedumpfile-static/usr/share/initramfs-tools/hooks/makedumpfile
14
override_dh_installinit:
15
# Start right after syslog is available, and don't bother stopping
16
# (which just unloads the kdump kernel) so that we can catch crashes
17
# all the way until actual shutdown.
18
dh_installinit -pkdump-tools -- start 11 2 3 4 5 .
20
# The upstream Makefile modifies makedumpfile.8 in place, so without this hack
21
# (or a patch to the Makefile, which would be harder to maintain), our clean
22
# target won't get us back to the original source.
23
override_dh_auto_build:
24
cp makedumpfile.8 makedumpfile.8.orig
27
override_dh_auto_clean:
28
if [ -f makedumpfile.8.orig ]; then \
29
mv makedumpfile.8.orig makedumpfile.8; \
39
# Make sure no guilt patches are applied. But don't fail if guilt
40
# hasn't been initialized yet.
41
guilt status > /dev/null || guilt init
44
rm -rf .git/patches/$(branch)
45
rsync -av --delete debian/patches/ .git/patches/$(branch)
46
touch .git/patches/$(branch)/status
55
guilt export debian/patches
57
.PHONY: guilt-patches debian/patches