summaryrefslogtreecommitdiff
path: root/indexing/xindex/doc/Makefile
blob: 7e5529f499bfb07d7b100981e639cd8cb25adbb1 (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

.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps

PACKAGE = xindex

MAIN = xindex-doc

LATEX = lualatex

ARCHNAME = $(MAIN)-$(shell date +%y%m%d)

ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(MAIN).tex README Changes Makefile

#TDS = ~/PSTricks/PSTricks-TDS

all : doc clean
# clean
doc: 	
	$(LATEX) --shell-escape $(MAIN)
#	if ! test -f $(MAIN).glo ; then touch $(MAIN).glo; fi
	if ! test -f $(MAIN).idx ; then touch $(MAIN).idx; fi
#	makeindex -s gglo.ist -t $(MAIN).glg -o $(MAIN).gls $(MAIN).glo
	xindex -a $(MAIN).idx
#	bibtex $(MAIN)
	$(LATEX) --shell-escape $(MAIN)
#	$(LATEX) --shell-escape $(MAIN)

clean : 
	$(RM) *.dvi *.aux *.log  *.xml xindex-?.tex xindex-??.tex *.ind *.idx *.toc *.out *.ilg

veryclean : clean
	$(RM) *.pdf 

arch :
	zip $(ARCHNAME).zip $(ARCHFILES)

tds:
	cp -u Changes     $(TDS)/doc/latex/$(PACKAGE)/
	cp -u README      $(TDS)/doc/latex/$(PACKAGE)/
	cp -u $(MAIN).pdf $(TDS)/doc/latex/$(PACKAGE)/
#
	cp -u Changes        $(TDS)/tex/latex/$(PACKAGE)/
	cp -u $(PACKAGE).sty $(TDS)/tex/latex/$(PACKAGE)/
#
	cp -u Changes     $(TDS)/source/$(PACKAGE)/
	cp -u $(MAIN).tex $(TDS)/source/$(PACKAGE)/
	cp -u $(MAIN).bib $(TDS)/source/$(PACKAGE)/
	cp -u Makefile    $(TDS)/source/$(PACKAGE)/


# EOF