Annotation of docbook2mdoc/Makefile, Revision 1.11
1.11 ! kristaps 1: VERSION = 0.0.7
1.1 kristaps 2: CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
1.5 kristaps 3: WWWPREFIX = /usr/vhosts/mdocml.bsd.lv/www/htdocs/docbook2mdoc
1.1 kristaps 4:
1.8 kristaps 5: docbook2mdoc: docbook2mdoc.o rules.o
6: $(CC) -o $@ docbook2mdoc.o rules.o -lexpat
1.1 kristaps 7:
1.11 ! kristaps 8: www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz README.txt
1.2 kristaps 9:
10: installwww: www
1.5 kristaps 11: mkdir -p $(WWWPREFIX)/snapshots
1.11 ! kristaps 12: install -m 0444 index.html docbook2mdoc.1.html README.txt $(WWWPREFIX)
1.5 kristaps 13: install -m 0444 docbook2mdoc-$(VERSION).tgz $(WWWPREFIX)/snapshots
14: install -m 0444 docbook2mdoc-$(VERSION).tgz $(WWWPREFIX)/snapshots/docbook2mdoc.tgz
1.2 kristaps 15:
16: dist: docbook2mdoc-$(VERSION).tgz
17:
18: docbook2mdoc-$(VERSION).tgz:
19: mkdir -p .dist/docbook2mdoc-$(VERSION)
1.8 kristaps 20: install -m 0444 docbook2mdoc.c rules.c extern.h Makefile docbook2mdoc.1 .dist/docbook2mdoc-$(VERSION)
1.2 kristaps 21: (cd .dist && tar zcf ../$@ docbook2mdoc-$(VERSION))
22: rm -rf .dist
23:
1.8 kristaps 24: docbook2mdoc.o rules.o: extern.h
25:
1.2 kristaps 26: index.html: index.xml
27: sed "s!@VERSION@!$(VERSION)!g" index.xml >$@
28:
29: docbook2mdoc.1.html: docbook2mdoc.1
30: mandoc -Thtml docbook2mdoc.1 >$@
31:
1.11 ! kristaps 32: README.txt: README
! 33: cp README $@
1.3 kristaps 34:
1.1 kristaps 35: clean:
1.8 kristaps 36: rm -f docbook2mdoc docbook2mdoc.o rules.o
1.1 kristaps 37: rm -rf docbook2mdoc.dSYM
1.11 ! kristaps 38: rm -f index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz README.txt
CVSweb