1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DEB_BUILD_HARDENING=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export EXTDIR=/usr/lib/crash/extensions
DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk
%:
dh $@
override_dh_auto_build:
dh_auto_build
$(MAKE) extensions lzo snappy
override_dh_auto_clean:
cp $(CURDIR)/Makefile $(CURDIR)/debian/Makefile.ori
dh_auto_clean
override_dh_clean:
dh_clean
cp $(CURDIR)/debian/Makefile.ori $(CURDIR)/Makefile
rm -Rf $(CURDIR)/configure
rm -Rf $(CURDIR)/gdb-7.6
rm -Rf $(CURDIR)/gdb.files
rm -Rf $(CURDIR)/build_data.c
rm -Rf $(CURDIR)/extensions/*.so
rm -Rf $(CURDIR)/CFLAGS.extra
rm -Rf $(CURDIR)/LDFLAGS.extra
rm -Rf $(CURDIR)/extensions/defs.h
override_dh_auto_install:
dh_auto_install
cp $(CURDIR)/debian/Makefile.ori $(CURDIR)/Makefile
mkdir -p $(CURDIR)/debian/crash$(EXTDIR)
cp -p extensions/*.so $(CURDIR)/debian/crash$(EXTDIR)
override_dh_auto_test:
# Crash does not provide a testsuite
|