summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lshort-czech/Makefile
blob: 01dce15f784111a6233ec9b639b71ff8be17a7f1 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
SHELL = /bin/sh
VERS = 4.27

# Define some variables
#LATEX=latex
#DVIPS=dvips
#MAKEINDEX=makeindex
PDFLATEX=pdflatex
FILE=lshort-cs
PACKAGE=lshort-czech
TOFILE=$(PACKAGE)-$(VERS).src+build.tar.gz

#OTHER = README CHANGES
FILES = README CHANGES MANIFEST Makefile \
	src/biblio.tex src/math.tex src/things.tex src/contrib.tex \
	src/lshort.sty src/mylayout.sty src/title.tex src/custom.tex \
	src/overview.tex src/typeset.tex src/fancyhea.sty src/lssym.tex \
	src/spec.tex src/lshort-base.tex src/graphic.tex \
	src/$(FILE).tex src/$(FILE)-a5.tex 

all: fast

fast: $(FILES)
	-mkdir pdfbuild
	(T1FONTS=.:`pwd`/eurofont: && \
	export T1FONTS && \
	TEXINPUTS=.:`pwd`/src:`pwd`/euro:${TEXINPUTS:-:} && \
	export TEXINPUTS && \
	cd pdfbuild && \
	$(PDFLATEX) $(FILE) && \
	#$(MAKEINDEX) -s ../src/lshort.ist $(FILE).idx && \
	mv $(FILE).pdf .. && \
	echo -n )

final: $(FILES) 
	-mkdir pdfbuild
	cp src/$(FILE).ind pdfbuild/ 
	(T1FONTS=.:`pwd`/eurofont: && \
	export T1FONTS && \
	TEXINPUTS=.:`pwd`/src:`pwd`/euro:${TEXINPUTS:-:} && \
	export TEXINPUTS && \
	cd pdfbuild && \
	#$(PDFLATEX) $(FILE) && \
	#  old approach: $(MAKEINDEX) -s ../src/lshort.ist $(FILE) && \
	#  External work needed here as xindy isn't working on my computer; \
	#  that's known problem with different CLISP versions, though I haven't solved that. \
	#  cp1250 or latin2 \
	#texindy -M latex -L czech -C latin2 -o temp.ind $(FILE).idx \
		#cat temp.ind | sed " \
		#s/lettergroupDefault{default}/lettergroup{Symboly}/; \
		#s/lettergroup{\xC8}/lettergroup{\\\\v{C}}/; \
		#s/lettergroup{\xD8}/lettergroup{\\\\v{R}}/; \
		#s/lettergroup{\x8A}/lettergroup{\\\\v{S}}/; \
		#">$(FILE).ind && \
	#rm -f temp.ind && \
	$(PDFLATEX) $(FILE) && \
	$(PDFLATEX) $(FILE) && \
	thumbpdf --resolution 10 $(FILE).pdf && \
	$(PDFLATEX) $(FILE) && \
	mv $(FILE).pdf .. && \
	echo -n )
	#tar:	$(FILES)
	#rm -f $(PACKAGE)-$(VERS)
	ln -s . $(PACKAGE)-$(VERS)
	tar -zcvf $(TOFILE) `awk '{print "$(PACKAGE)-$(VERS)/"$$1}' MANIFEST`
	rm -f $(PACKAGE)-$(VERS)

extra:
	rm -f src/$(FILE).ind

clear: 
	# Dear Pavel, use "make clean" instead of "make clear" here!

clean:
	rm -f pdfbuild/*
	-rmdir pdfbuild
	rm -f $(FILE).pdf
	rm -f $(TOFILE)
	rm -f texput.log
	rm -f $(PACKAGE)-$(VERS)