File: rules

package info (click to toggle)
saclib 2.2.8-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,868 kB
  • sloc: ansic: 40,932; csh: 1,190; asm: 541; awk: 320; sh: 246; perl: 116; makefile: 98; sed: 48
file content (24 lines) | stat: -rwxr-xr-x 665 bytes parent folder | download | duplicates (2)
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)|' $< > $@