summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/familytree/doc-ja/Makefile
blob: 4cfc10f8c365562206773e8cd0a0c99d06d6d7ba (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

Dir ?= /tmp
export Dir
InstallDir ?= ${Dir}/texmf-dist

LATEX ?= platex -kanji=euc
include ../cmd.mk
Lo = '\def\Dir{'${Dir}'}'

########################################

Name = familytree
Tgt = ${Dir}/${Name}-ja.pdf
Tex = $(addsuffix -ja.tex, ${Name} ${Name} $(addprefix ft-, \
	lib individual sibling gens marriage))

########################################

all: ${Tgt}

clean:
	${RM} *~ ${Tgt}
	${MAKE} -C figs $@

install:
	install -m 444 -pD ${Dir}/${Name}-ja.pdf \
		${InstallDir}/source/latex/${Name}/${Name}-ja.pdf

# it should be already generated by upper make
# ${Dir}/${Name}.sty:

${Dir}/${Name}-ja.pdf: ${Tex} ${Dir}/${Name}.sty \
	${figPdf} ${figPrint} ${figLilyPdf} ${figLilyPrint}
	${MAKE} -C figs all
	$(call MakePdf,${Name}-ja,tex)

-include priv.mk