Debian Codegraph @

texmf-dist/source/luatex/hyph-utf8/Makefile

raw
1 # Makefile for luatex-hyphen in tex-hyphen/hyph-utf8
2
3 NAME = luatex-hyphen
4 DTX = $(NAME).dtx
5
6 # Generated files
7 COMPILED = $(NAME).pdf
8 UNPACKED = $(NAME).lua hyphen.cfg
9
10 # Installation locations
11 RUNDIR = ../../../tex/luatex/hyph-utf8
12 DOCDIR = ../../../doc/luatex/hyph-utf8
13
14 # Final files
15 RUNFILES = $(patsubst %, $(RUNDIR)/%, $(UNPACKED))
16 DOCFILE = $(DOCDIR)/$(COMPILED)
17
18 all: $(RUNFILES) $(DOCFILE)
19
20 DO_TEX = tex --interaction=batchmode $< >/dev/null
21 DO_PDFLATEX = pdflatex --interaction=batchmode $< >/dev/null
22
23 $(DOCFILE): $(DTX)
24 $(DO_PDFLATEX)
25 $(DO_PDFLATEX)
26 mv $(COMPILED) $(DOCDIR)
27
28 $(RUNFILES): $(DTX)
29 $(DO_TEX)
30 for file in $(UNPACKED); do mv $$file $(RUNDIR); done
31
32 clean:
33 @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg
34
35 .PHONY: clean