# # Makefile for combinedgraphics package # # Copyright 2009 Christian Schneider # # This file is part of combinedgraphics. # # combinedgraphics is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation, not any later version. # # combinedgraphics is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with combinedgraphics. If not, see . # # WARNING: THIS IS ALPHA SOFTWARE AND MAY CONTAIN SERIOUS BUGS! # PACKAGE := combinedgraphics PDFLATEX := pdflatex MAKEINDEX := makeindex .PHONY: all pkg doc test clean distclean force all: pkg doc test %.sty: %.ins %.dtx $(RM) $@ $(PDFLATEX) -interaction=nonstopmode $< %.idx %.glo: %.dtx %.sty $(PDFLATEX) -interaction=nonstopmode $< %.ind: %.idx $(MAKEINDEX) -s gind.ist -o $@ $< %.gls: %.glo $(MAKEINDEX) -s gglo.ist -o $@ $< $(PACKAGE).pdf: %.pdf: %.dtx %.sty %.ind %.gls $(PDFLATEX) -interaction=nonstopmode $< $(PDFLATEX) -interaction=nonstopmode $< $(PDFLATEX) -interaction=nonstopmode $< pkg: $(PACKAGE).sty test: $(PACKAGE).sty force $(MAKE) -C test doc: $(PACKAGE).pdf clean: force $(RM) *.aux *.glo *.gls *.idx *.ilg *.ind *.log *.toc *~ $(MAKE) -C test clean distclean: clean force $(RM) $(PACKAGE).sty $(PACKAGE).pdf $(TESTFILE).pdf $(MAKE) -C test distclean force: ;