File: rules

package info (click to toggle)
libgfshare 2.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,628 kB
  • sloc: sh: 11,402; ansic: 845; makefile: 63
file content (34 lines) | stat: -rwxr-xr-x 724 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
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DPKG_EXPORT_BUILDFLAGS = 1

include /usr/share/dpkg/default.mk

ifneq ($(SOURCE_DATE_EPOCH),)
faketime := faketime -f "$(shell date --date='@$(SOURCE_DATE_EPOCH)' '+%Y-%m-%d %H:%M:%S')"
endif

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf pdf html

override_dh_auto_build:
	dh_auto_build
	install -d pdf html
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	cd pdf && $(faketime) pdflatex ../doc/theory.tex
	cd html && $(faketime) htlatex ../doc/theory.tex
endif

override_dh_auto_install:
	dh_auto_install
	rm -f debian/tmp/usr/lib/*/*.la

override_dh_installdocs:
	dh_installdocs --link-doc=libgfshare2 -Nlibgfshare-bin
	dh_installdocs -plibgfshare-bin