
GROFF=groff

all:	autopano-sift.txt autopano-complete.txt autopano-complete.old.txt \
			autopano.txt autopanog.txt \
			generatekeys.txt showone.txt showtwo.txt \
		autopano-sift.ps autopano-complete.ps autopano-complete.old.ps \
			autopano.ps autopanog.ps \
			generatekeys.ps showone.ps showtwo.ps \
		autopano-sift.pdf autopano-complete.pdf autopano-complete.old.pdf \
			autopano.pdf autopanog.pdf \
			generatekeys.pdf showone.pdf showtwo.pdf

%.ps:    %.1
	$(GROFF) -t -e -mandoc -Tps $< > $@
%.ps:    %.7
	$(GROFF) -t -e -mandoc -Tps $< > $@

%.txt:    %.1
	$(GROFF) -man -Tascii -P-cbuof $< > $@
%.txt:    %.7
	$(GROFF) -man -Tascii -P-cbuof $< > $@

%.pdf:    %.ps
	ps2pdf $< $@

clean:
	rm -f *.ps *.pdf *.txt

