diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/pbsheet/xpl/GNUmakefile | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pbsheet/xpl/GNUmakefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/pbsheet/xpl/GNUmakefile | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pbsheet/xpl/GNUmakefile b/Master/texmf-dist/doc/latex/pbsheet/xpl/GNUmakefile new file mode 100644 index 00000000000..035b81b336c --- /dev/null +++ b/Master/texmf-dist/doc/latex/pbsheet/xpl/GNUmakefile @@ -0,0 +1,85 @@ +# GNUmakefile, © 2003, 2004, Djalil CHAFAI. + +# Please adjust the following variables to your environment. + +BIBTEX=bibtex +DVIPS=dvips -D 600 -t a4 +LATEX=latex #--src-specials +PDFLATEX=pdflatex +RM=rm +THUMBPDF=thumbpdf + +# Normally, what follows does not need any modification. + +NOM=xpl-fr +NOML="" +MAKEFILENAME=GNUmakefile +OUTPUTS=dvi ps pdf +INTERMED=log out aux toc ind bbl blg lol lof lot ilg idx inc rel brf tpt +FIGSDIR=img +CODESDIR=pgm +TEXINPUTS:=.:./$(FIGSDIR)//:./$(CODESDIR)//:$(TEXINPUTS) +export TEXINPUTS + +# Static sources related variables. + +TEX= $(NOM).bib $(NOM).tex +MISC1= $(shell kpsewhich amsalpha.bst) +MISC2= $(wildcard $(FIGSDIR)/* $(CODESDIR)/*) $(MAKEFILENAME) +SRC= $(MISC1) $(MISC2) $(TEX) + +# Dependencies. + +DEP_PS=$(MAKEFILENAME) $(MISC1) $(TEX) +DEP_PDF=$(MAKEFILENAME) $(MISC1) $(TEX) +DEP_ARCH=$(SRC) $(NOM).ps $(NOM).pdf + + +# Special variables. + +.PHONY= $(OUTPUTS) help clean cleanall +.PHONY: $(.PHONY) +.SUFFIXES: +.INTERMEDIATE: $(INTERMDED:%=$(NOM).%) + +# Phony rules. + +help: + @echo + @echo " Rules to compile $(NOM).tex : $(.PHONY)." + @echo " For example «make ps» will make the PS file for you!" + @echo + +dvi: clean $(NOM).dvi +ps: $(NOM).ps +pdf: clean $(NOM).pdf + +clean: + @$(RM) -f $(INTERMED:%=$(NOM).%) thb*.png *~ *.aux *.inc + @$(RM) -f $(CODESDIR)/*~ $(FIGSDIR)/*~ + @$(RM) -rf auto + +cleanall: clean + @for f in $(OUTPUTS); do $(RM) -f $(NOM).$$f; done + +# Rules based on target files. + +$(NOM).ps: $(NOM).dvi + @$(DVIPS) $(NOM).dvi -o $(NOM).ps + +$(NOM).dvi: $(DEP_PS) + @$(LATEX) $(NOM) + @$(BIBTEX) $(NOM) + @$(LATEX) $(NOM) + @$(LATEX) $(NOM) + @$(LATEX) $(NOM) + +$(NOM).pdf: $(DEP_PDF) + @$(PDFLATEX) $(NOM) + @$(BIBTEX) $(NOM) + @$(PDFLATEX) $(NOM) + @$(PDFLATEX) $(NOM) + @$(THUMBPDF) $(NOM).pdf + @$(PDFLATEX) $(NOM) + +# End Of File. |