############################################################# # Copyright 1998-99 Marco Budde (mbudde@sms.antar.com) # ############################################################# # Mit diesem Makefile können Sie die SGML-Sourcen in # # die verschiedene Formate übersetzen. Aufgerufen wird # # der Makefile so: # # # # make {txt,html,tex,dvi,ps,pdf} # ############################################################# SGMLOPTS = -c latin --language=de # how to convert a sgml file to other formats %.txt: %.sgml sgml2txt -f $(SGMLOPTS) $< %.html: %.sgml sgml2html -I $(SGMLOPTS) $< %.tex: %.sgml sgml2latex -o tex $(SGMLOPTS) $< %.dvi: %.sgml sgml2latex -o dvi $(SGMLOPTS) $< %.ps: %.sgml sgml2latex -o ps $(SGMLOPTS) $< %.pdf: %.sgml sgml2latex -o pdf $(SGMLOPTS) $< # list of files TXT := $(patsubst %.sgml,%.txt,$(wildcard *.sgml)) HTML := $(patsubst %.sgml,%.html,$(wildcard *.sgml)) TEX := $(patsubst %.sgml,%.tex,$(wildcard *.sgml)) DVI := $(patsubst %.sgml,%.dvi,$(wildcard *.sgml)) PS := $(patsubst %.sgml,%.ps,$(wildcard *.sgml)) PDF := $(patsubst %.sgml,%.pdf,$(wildcard *.sgml)) all: txt html pdf ps dvi txt: $(TXT) html: $(HTML) tex: $(TEX) dvi: $(DVI) ps: $(PS) pdf: $(PDF) archiv: gzip *.txt *.tex *.dvi *.ps *.pdf clean: rm -f *.txt *.html *.tex *.dvi *.ps *.pdf rm -f *.gz *.tar.gz *~ .