1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
execute_before_dh_auto_configure:
cp debian/Makefile $(CURDIR)
execute_after_dh_auto_build: debian/saclib.pc
cd doc/maint_guide && \
pdflatex maintain.tex && pdflatex maintain.tex
cd doc/user_guide && \
pdflatex saclib.tex && pdflatex saclib.tex && \
pdflatex saclocal.tex && pdflatex saclocal.tex && \
pdflatex sackwic.tex && pdflatex sackwic.tex
debian/saclib.pc: debian/saclib.pc.in
sed -e 's|@VERSION[@]|$(DEB_VERSION_UPSTREAM)|' \
-e 's|@MULTIARCH[@]|$(DEB_HOST_MULTIARCH)|' $< > $@
|