File: rules

package info (click to toggle)
jags 4.3.0-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 12,280 kB
  • sloc: ansic: 46,227; cpp: 37,972; sh: 4,418; yacc: 1,791; makefile: 922; fortran: 773; lex: 368; lisp: 105
file content (28 lines) | stat: -rwxr-xr-x 1,030 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

## cf https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
DEB_DATE_RFC_2822 := $(shell dpkg-parsechangelog -S date)                     
DEB_DATE_RFC_3339 := $(shell date -u "--rfc-3339=seconds" -d "$(DEB_DATE_RFC_2822)")         

override_dh_auto_configure:
	dh_auto_configure -- --without-included-ltdl

override_dh_auto_build:
	make
        ## cf https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
        ## and override current time with time in changelog for indentical pdf docs
        ## also see #https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778462 for the chmod
        #(cd doc/manual && faketime -f "$(DEB_DATE_RFC_3339)" make docs && ls)
	(cd doc/manual && make docs)

override_dh_auto_install:
	dh_auto_install
        #
        # edd 08 May 2011
        # empty dependency_lib in .la files (cf #621213)	
	find debian/$(package) -name \*.la | \
		xargs perl -p -i -e "s/dependency_libs='.*'/dependency_libs=''/" 

%:
	dh $@ --with autoreconf