VERSION = 0.0.2 CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings docbook2mdoc: docbook2mdoc.o $(CC) -o $@ docbook2mdoc.o -lexpat www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz installwww: www mkdir -p $(PREFIX)/snapshots install -m 0444 index.html docbook2mdoc.1.html $(PREFIX) install -m 0444 docbook2mdoc-$(VERSION).tgz $(PREFIX)/snapshots install -m 0444 docbook2mdoc-$(VERSION).tgz $(PREFIX)/snapshots/docbook2mdoc.tgz dist: docbook2mdoc-$(VERSION).tgz docbook2mdoc-$(VERSION).tgz: mkdir -p .dist/docbook2mdoc-$(VERSION) install -m 0444 docbook2mdoc.c Makefile docbook2mdoc.1 .dist/docbook2mdoc-$(VERSION) (cd .dist && tar zcf ../$@ docbook2mdoc-$(VERSION)) rm -rf .dist index.html: index.xml sed "s!@VERSION@!$(VERSION)!g" index.xml >$@ docbook2mdoc.1.html: docbook2mdoc.1 mandoc -Thtml docbook2mdoc.1 >$@ clean: rm -f docbook2mdoc docbook2mdoc.o docbook2mdoc-$(VERSION).tgz index.html docbook2mdoc.1.html rm -rf docbook2mdoc.dSYM