File: rules

package info (click to toggle)
khronos-api 4.6%2Bgit20180514-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,484 kB
  • sloc: xml: 52,871; python: 1,715; makefile: 50; ansic: 23; php: 15; sh: 3
file content (18 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DH_VERBOSE=1
export CHANGE=$(shell dpkg-parsechangelog -S date)
export DATE=$(shell date -ud '$(CHANGE)' +D:%Y%m%d%H%M%SZ)

%:
	dh $@ --sourcedirectory=xml

override_dh_install:
	pdflatex '\pdfinfo{/CreationDate($(DATE))/ModDate($(DATE))}\input{xml/readme.tex}'
	pdflatex '\pdfinfo{/CreationDate($(DATE))/ModDate($(DATE))}\input{xml/readme.tex}'
	pdflatex '\pdfinfo{/CreationDate($(DATE))/ModDate($(DATE))}\input{xml/readme.tex}'
	dh_install

override_dh_clean:
	dh_clean
	rm -rf api xml/__pycache__