Annotation of docbook2mdoc/Makefile, Revision 1.2
1.2 ! kristaps 1: VERSION = 0.0.2
1.1 kristaps 2: CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
3:
4: docbook2mdoc: docbook2mdoc.o
5: $(CC) -o $@ docbook2mdoc.o -lexpat
6:
1.2 ! kristaps 7: www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz
! 8:
! 9: installwww: www
! 10: mkdir -p $(PREFIX)/snapshots
! 11: install -m 0444 index.html docbook2mdoc.1.html $(PREFIX)
! 12: install -m 0444 docbook2mdoc-$(VERSION).tgz $(PREFIX)/snapshots
! 13: install -m 0444 docbook2mdoc-$(VERSION).tgz $(PREFIX)/snapshots/docbook2mdoc.tgz
! 14:
! 15: dist: docbook2mdoc-$(VERSION).tgz
! 16:
! 17: docbook2mdoc-$(VERSION).tgz:
! 18: mkdir -p .dist/docbook2mdoc-$(VERSION)
! 19: install -m 0444 docbook2mdoc.c Makefile docbook2mdoc.1 .dist/docbook2mdoc-$(VERSION)
! 20: (cd .dist && tar zcf ../$@ docbook2mdoc-$(VERSION))
! 21: rm -rf .dist
! 22:
! 23: index.html: index.xml
! 24: sed "s!@VERSION@!$(VERSION)!g" index.xml >$@
! 25:
! 26: docbook2mdoc.1.html: docbook2mdoc.1
! 27: mandoc -Thtml docbook2mdoc.1 >$@
! 28:
1.1 kristaps 29: clean:
1.2 ! kristaps 30: rm -f docbook2mdoc docbook2mdoc.o docbook2mdoc-$(VERSION).tgz index.html docbook2mdoc.1.html
1.1 kristaps 31: rm -rf docbook2mdoc.dSYM
CVSweb