summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/Makefile
blob: 554a361248bd53e0f2a7bccf2803a6f78c47a167 (plain)
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
35
36
37
38
39
40
# $Id: Makefile 772 2017-03-16 22:58:04Z karl $
# Public domain.

include ../Common.mak

all: abc-diff testptex-diff testdate-diff testtrailer-diff

abc abc.pdf:
	$(env) $(prog) '\pdfsuppressptexinfo=1\input' abc.tex </dev/null

abc-orig.pdf:
	$(env) $(prog) abc.tex </dev/null && mv abc.pdf $@
abc-diff: abc-orig.pdf abc.pdf
	-$(diff) $^  # /PTEX.Fullbanner should be gone

testptex = test-pdfsuppressptexinfo
$(testptex)-orig.pdf: $(testptex).tex abc.pdf
	$(env) $(prog) $(testptex).tex </dev/null \
	  && mv $(testptex).pdf $(testptex)-orig.pdf
$(testptex).pdf: $(testptex).tex abc.pdf Makefile
	$(env) $(prog) '\pdfsuppressptexinfo=-1\input' $(testptex).tex \
	  </dev/null
testptex-diff: $(testptex)-orig.pdf $(testptex).pdf
	-$(diff) $^  # all /PTEX.* should be gone

# these are also tested in ../03-deterministic-output, but can try them here.
testdate = test-pdfinfoomitdate
$(testdate).pdf: $(testdate).tex abc.pdf
	$(env) $(prog) $(testdate).tex </dev/null
testdate-diff: $(testptex)-orig.pdf $(testdate).pdf
	-$(diff) $^  # /CreationDate, /ModDate should be gone

testtrailer = test-pdftrailer
$(testtrailer).pdf: $(testtrailer).tex abc.pdf
	$(env) $(prog) $(testtrailer).tex </dev/null
testtrailer-diff: $(testptex)-orig.pdf $(testtrailer).pdf
	-$(diff) $^  # new /mytrlrkey, dates+id should be different

clean:
	$(clean)