# # Copyright (c) 1994, 1995, 1996 Gunther Schadow. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. TOPDIR = .. all: ProtoGen.ps ProtoGen.info ProtoGen.html \ manual.ps manual.info manual.html \ appman.ps appman.info appman.html include $(TOPDIR)/GNUmakefile.inc DEVICE = HPDeskJet RESOLUTION = 300 ISUFFIX = .cp .fn .ky .pg .tp .vr ISUFFIXS= $(addsuffix s, $(ISUFFIX)) JSUFFIX = .aux .toc .log .tid .fmt .eps .dvi .ppm KSUFFIX = .info* .ps .html .gif ProtoGen.dvi: ProtoGen-1.eps ProtoGen-2.eps ProtoGen-3.eps ProtoGen-4.eps manual.dvi: objtree.eps ProtoGen.html: ProtoGen-1.gif ProtoGen-2.gif ProtoGen-3.gif ProtoGen-4.gif manual.html: objtree.gif appman.html: appman-1.gif appman.dvi: appman-1.eps # for any case: (don't want to puzzle a file from a 2GB disk again!) .PRECIOUS: %.fmt %.texi %.fig %.tex %.ltx %.eps: %.eps.static ln $< $@ %.ps: %.ps.static ln $< $@ %.gif: %.gif.static ln $< $@ %.jpg: %.jpg.static ln $< $@ %.info: %.texi makeinfo -o $@ $< %.html: %.texi texi2html -split_node -expandinfo -menu $< %.dvi: %.texi %.dvi: %.texi %.tid ./texinfo.fmt virtex \&./texinfo $< %.tid: %.texi texinfo.fmt virtex \&./texinfo $< for i in $(addprefix *, $(ISUFFIX)) ; do texindex $$i ; done touch $@ ifeq "$(shell hostname)" "plocus" %.ps: %.dvi dvips -G$(DEVICE) -D$(RESOLUTION) -t a4 -o $@ $< else %.ps: %.dvi dvips -D$(RESOLUTION) -t a4 -o $@ $< endif %.ps: %.fig fig2dev -L ps -P $< $@ %.eps: %.fig fig2dev -L ps -p ortrait $< $@ %.ppm: %.ps gs -sDEVICE=ppmraw -sOutputFile=$@ -dNOPAUSE -q $< quit.ps %.gif: %.ppm pnmcrop $< |pnmmargin 5 |ppmtogif > $@ %.fmt: %.tex initex \&tex ./$< @dump distclean: $(MAKE) all rm -f $(addprefix *, $(ISUFFIX) $(ISUFFIXS) $(JSUFFIX)) rm -f $(JUNK) clean: rm -f $(addprefix *, $(ISUFFIX) $(ISUFFIXS) $(JSUFFIX)) rm -f $(JUNK) veryclean: rm -f $(addprefix *, $(ISUFFIX) $(ISUFFIXS) $(JSUFFIX)) rm -f $(addprefix *, $(KSUFFIX)) rm -f $(JUNK)