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