summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/source/texlive/texlive-zh-cn/Makefile
blob: 6541a0225478e2a4c911169000e8db4feb8f43ba (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
38
39
40
41
42
43
44
45
46
47
# $Id:$
# Makefile for TeX Live documentation.  Public domain.
TEX = xelatex
doc = texlive-zh-cn
source = $(doc).tex
pdf = $(doc).pdf
lang = chinese

all: $(pdf)

env = TEXINPUTS=../texlive-common:../texlive-zh-cn:; export TEXINPUTS;

$(pdf): $(source)
	$(env) $(TEX) $<
	$(env) $(TEX) $<

clean:
	rm -f *.aux *.log *.blg *.toc *.out *.lot tex4ht.ps *.4*
	rm -f *.xref* *.lg *.idv *.out *.otc *.tmp tmp.*
	rm -f $(doc).dvi $(doc).ps

realclean: clean
	rm -f $(doc).pdf
	rm -f *.html *.htm $(doc).css *.gif *.jpg


insttop = ../../../doc
instfiles = $(doc)*html $(doc).css $(doc).pdf
copyfiles = *.png
install:
#	lang=`dirname \`pwd\` | sed 's,.*/,,'`;
	lang=$(lang); \
	tldir=`pwd | sed 's,.*/,,'`; \
	instdir=$(insttop)/$$lang/$$tldir; \
	echo tldoc install to $$instdir; \
	for f in $(instfiles); do \
	  cmp -s $$f $$instdir/$$f && rm -v $$f && continue; \
	  mv -v $$f $$instdir/$$f; \
	done; \
	lang=$(lang); \
	tldir=`pwd | sed 's,.*/,,'`; \
	instdir=$(insttop)/$$lang/$$tldir; \
	for f in $(copyfiles); do \
	  cmp -s $$f $$instdir/$$f && continue; \
	  cp -v $$f $$instdir/$$f; \
	done; echo "$$instdir"