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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Compile with LFS support.
export DEB_CPPFLAGS_MAINT_APPEND = \
$(if $(filter $(DEB_HOST_ARCH_BITS),32),-D_FILE_OFFSET_BITS=64)
# Set these variables for the test suite.
export LARCH_PATH := .:$(CURDIR)/lib
export LCLIMPORTDIR := .:$(CURDIR)/imports
MUTABLE_FILES := aclocal.m4 bin/Makefile.in config/depcomp config.hin \
config/install-sh config/missing config/mkinstalldirs configure \
doc/Makefile.in imports/Makefile.in lib/Makefile.in lib/posix.lcd \
lib/posixstrict.lcd lib/standard.lcd lib/standardstrict.lcd \
lib/unix.lcd lib/unixstrict.lcd Makefile.in src/cgrammar.c \
src/llgrammar.c src/Makefile.in src/signature.c test/Makefile.in
# Force non-parallel builds, as splint
# sometimes fails to build in parallel.
%:
dh $@ --no-parallel
override_dh_update_autotools_config:
dh_update_autotools_config
for f in $(MUTABLE_FILES); do \
cp -an $$f $$f.orig; \
done
override_dh_clean:
dh_clean -X.orig
for f in $(MUTABLE_FILES); do \
test ! -f $$f.orig || mv -f $$f.orig $$f; \
done
override_dh_auto_configure-arch:
dh_auto_configure -a
override_dh_auto_configure-indep:
override_dh_auto_build-indep:
override_dh_auto_test-arch:
dh_auto_test -a -- -C test
override_dh_auto_test-indep:
override_dh_auto_install-indep:
override_dh_install:
dh_install -psplint-data -X.lcd -XMakefile
dh_install --remaining-packages
override_dh_installdocs-indep:
dh_installdocs -i
( cd debian/splint-doc-html/usr/share/doc/splint-doc-html/html; \
mv manual.htm manual.html; mv realloc.htm realloc.html )
override_dh_installchangelogs:
dh_installchangelogs doc/changes.html
get-orig-source:
uscan --force
.PHONY: get-orig-source
|