Handle unrecognised options correctly.
# HG changeset patch
# User Bryan O'Sullivan <bos@serpentine.com>
# Node ID 837a023781a0228e5791e8e278129d2d54d13f99
# Parent d2994b5298fb20f87dc1d4747635b280db3c0526
Handle unrecognised options correctly.
SOURCES=$(wildcard *.1.txt)
MAN=$(SOURCES:%.1.txt=%.1)
HTML=$(SOURCES:%.1.txt=%.1.html)
all: man
man: $(MAN)
html: $(HTML)
%.1: %.1.xml
xmlto man $*.1.xml
%.1.xml: %.1.txt
asciidoc -d manpage -b docbook $*.1.txt
%.1.html: %.1.txt
asciidoc -b html $*.1.txt
clean:
$(RM) $(MAN) $(MAN:%.1=%.1.xml) $(MAN:%.1=%.1.html)