1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#
# Makefile for pstoedit documentation
# (adapted from `Makefile' in the latex2man package)
# Rolf Niepraschk, niepraschk@ptb.de, 99/08/20
#
BASE = pstoedit
DVIPS_FLAGS = -Pwww # use the type1 version of the cm fonts
LATEX2MAN_FLAGS = -t pstoedit.trans
.PHONY : all clean realclean
.SUFFIXES : .htm .1 .tex .ps .info .texi .txt
all : $(BASE).1 $(BASE).htm $(BASE).txt # $(BASE).ps $(BASE).pdf $(BASE).info
$(MAKE) clean
%.dvi : %.tex
latex $<
# latex $<
%.ps : %.dvi
dvips $(DVIPS_FLAGS) -o $@ $<
%.pdf : %.tex
pdflatex $<
# pdflatex $<
%.info : %.texi
makeinfo $<
%.txt : %.1
groff -t -man -Tlatin1 $< | \
sed -e 's/.//g' \
-e 's/7|//g' \
-e 's/[6-9]//g' \
-e 's///g' \
-e 's/$$/- /' > $@
%.1 : %.tex
latex2man $(LATEX2MAN_FLAGS) -M $< $@
%.htm : %.tex
latex2man $(LATEX2MAN_FLAGS) -H $< $@
%.texi : %.tex
latex2man $(LATEX2MAN_FLAGS) -T $< $@
%.rtf : %.1
rman -f RTF $< > $@
#$(BASE).1 : $(BASE).tex $(BASE).trans
#$(BASE).htm : $(BASE).tex $(BASE).trans
clean :
rm -f $(BASE).aux $(BASE).log $(BASE).dvi
realclean : clean
$(RM) $(BASE).ps $(BASE).pdf $(BASE).1 $(BASE).htm $(BASE).texi \
$(BASE).info $(BASE).txt $(BASE).rtf
# -- eof --
|