• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for luatex-hyphen in tex-hyphen/hyph-utf8
2
3NAME = luatex-hyphen
4DTX = $(NAME).dtx
5
6# Generated files
7COMPILED = $(NAME).pdf
8UNPACKED = $(NAME).lua hyphen.cfg
9
10# Installation locations
11RUNDIR = ../../../tex/luatex/hyph-utf8
12DOCDIR = ../../../doc/luatex/hyph-utf8
13
14# Final files
15RUNFILES = $(patsubst %, $(RUNDIR)/%, $(UNPACKED))
16DOCFILE = $(DOCDIR)/$(COMPILED)
17
18all: $(RUNFILES) $(DOCFILE)
19
20DO_TEX = tex --interaction=batchmode $< >/dev/null
21DO_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
32clean:
33	@$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg
34
35.PHONY: clean
36