TARGNAME = USB-guide COMPONENTS = USB-guide.sgml usbintro.sgml install.sgml using.sgml \ userfaq.sgml HTML_COMPONENTS = usbcore.gif descr.gif topo.gif $(COMPONENTS) PAPER_COMPONENTS = usbcore.eps descr.eps topo.eps $(COMPONENTS) #DOCUMENTS = $(TARGNAME).html $(TARGNAME).txt $(TARGNAME).dvi $(TARGNAME).ps DOCUMENTS = $(TARGNAME).html $(TARGNAME).ps CLEANSTUFF = *~ \\\#*\# *.log *.toc *.aux DISTCLEANSTUFF = $(CLEANSTUFF) core *.bak REALCLEANSTUFF = *.ps *.dvi *.tex *.html *.info *.txt $ *.eps *.gif $(DISTCLEANSTUFF) SGMLTOOLS = db2html #SGMLTOOLS = sgmltools #SGMLTOOLS = nsgmls -c /usr/share/sgml/CATALOG.docbk31 -sv SGMLOPTS = FIG2GIF = fig2dev -L gif FIG2EPS = fig2dev -L ps all: $(DOCUMENTS) %.gif: %.fig $(FIG2GIF) $^ $*.gif %.eps: %.fig $(FIG2EPS) $^ $*.eps $(TARGNAME).html: $(HTML_COMPONENTS) $(SGMLTOOLS) -b html $(SGMLOPTS) $(TARGNAME).sgml ;\ mv -f $(TARGNAME)/*.html . ;\ rm -rf $(TARGNAME)/stylesheet-images; \ rmdir $(TARGNAME) %.txt: $(COMPONENTS) $(SGMLTOOLS) -b txt $(SGMLOPTS) $^ $(TARGNAME).dvi: $(PAPER_COMPONENTS) $(SGMLTOOLS) -b dvi $(SGMLOPTS) $(TARGNAME).sgml $(TARGNAME).ps: $(PAPER_COMPONENTS) $(SGMLTOOLS) -b ps $(SGMLOPTS) $(TARGNAME).sgml clean: rm -f $(CLEANSTUFF) distclean: rm -f $(DISTCLEANSTUFF) realclean: rm -f $(REALCLEANSTUFF)