summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/Makefile
blob: 6e176ae9742f42bdb71a531a14938656724a9863 (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 740 2016-04-23 15:08:37Z 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:
	rm -f *.log *.pdf *.fmt *.aux