summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/luatex/hyph-utf8/Makefile
blob: 2ae8bd67a1f0468902f163bcb7699f5f847dad5e (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
# Makefile for luatex-hyphen in tex-hyphen/hyph-utf8

NAME = luatex-hyphen
DTX = $(NAME).dtx

# Generated files
COMPILED = $(NAME).pdf
UNPACKED = $(NAME).lua hyphen.cfg

# Installation locations
RUNDIR = ../../../tex/luatex/hyph-utf8
DOCDIR = ../../../doc/luatex/hyph-utf8

# Final files
RUNFILES = $(patsubst %, $(RUNDIR)/%, $(UNPACKED))
DOCFILE = $(DOCDIR)/$(COMPILED)

all: $(RUNFILES) $(DOCFILE)

DO_TEX = tex --interaction=batchmode $< >/dev/null
DO_PDFLATEX = pdflatex --interaction=batchmode $< >/dev/null

$(DOCFILE): $(DTX)
	$(DO_PDFLATEX)
	$(DO_PDFLATEX)
	mv $(COMPILED) $(DOCDIR)

$(RUNFILES): $(DTX)
	$(DO_TEX)
	for file in $(UNPACKED); do mv $$file $(RUNDIR); done

clean: 
	@$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg

.PHONY: clean