summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/hyphenex/GNUmakefile
blob: 2dbfae0bb16f84de1d3b505f8581011eb5123b61 (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
# $Id: GNUmakefile 338 2021-01-10 22:49:48Z karl $
# Public domain.  Originally written by Karl Berry, 2008.

input_tex = tb0hyf.tex       # normally
#input_tex = hyfex-test.tex  # one-off test file

all: tb0hyf.pdf ushyphex.tex

ushyphex.tex: compare
	cp pl-ushyphex.tex ushyphex.tex  # must be identical

check: compare test.tex
	tex '\nonstopmode\input test.tex'

compare: pl-ushyphex.tex sh-ushyphex.tex
	diff $^

pl-ushyphex.tex: hyphenex.pl $(input_tex)
	perl $^ >$@ || rm -f $@

sh-ushyphex.tex: hyphenex.sh $(input_tex)
	sh $< <$(input_tex) >$@ || rm -f $@

tb0hyf.pdf: $(input_tex)
	TEXINPUTS=../plain: texfot pdftex '\nonstopmode\input $<'

h = hyphenex
dist: all check
	rm -f dist.zip
	cd .. && zip $h/$h.zip $h/README $h/GNUmakefile $h/hyphenex.?? \
	             $h/tb0hyf.tex $h/tb0hyf.pdf $h/test.tex $h/ushyphex.tex
# CTAN wants upload to be within a directory.