[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / docbook2mdoc

Annotation of docbook2mdoc/Makefile, Revision 1.10

1.10    ! kristaps    1: VERSION = 0.0.6
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.5       kristaps    4: WWWPREFIX = /usr/vhosts/mdocml.bsd.lv/www/htdocs/docbook2mdoc
1.1       kristaps    5:
1.8       kristaps    6: docbook2mdoc: docbook2mdoc.o rules.o
                      7:        $(CC) -o $@ docbook2mdoc.o rules.o -lexpat
1.1       kristaps    8:
1.5       kristaps    9: www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz $(BUILT)
1.2       kristaps   10:
                     11: installwww: www
1.5       kristaps   12:        mkdir -p $(WWWPREFIX)/snapshots
1.6       kristaps   13:        install -m 0444 index.html docbook2mdoc.1.html $(BUILT) $(WWWPREFIX)
1.5       kristaps   14:        install -m 0444 docbook2mdoc-$(VERSION).tgz $(WWWPREFIX)/snapshots
                     15:        install -m 0444 docbook2mdoc-$(VERSION).tgz $(WWWPREFIX)/snapshots/docbook2mdoc.tgz
1.2       kristaps   16:
                     17: dist: docbook2mdoc-$(VERSION).tgz
                     18:
                     19: docbook2mdoc-$(VERSION).tgz:
                     20:        mkdir -p .dist/docbook2mdoc-$(VERSION)
1.8       kristaps   21:        install -m 0444 docbook2mdoc.c rules.c extern.h Makefile docbook2mdoc.1 .dist/docbook2mdoc-$(VERSION)
1.2       kristaps   22:        (cd .dist && tar zcf ../$@ docbook2mdoc-$(VERSION))
                     23:        rm -rf .dist
                     24:
1.8       kristaps   25: docbook2mdoc.o rules.o: extern.h
                     26:
1.2       kristaps   27: index.html: index.xml
                     28:        sed "s!@VERSION@!$(VERSION)!g" index.xml >$@
                     29:
                     30: docbook2mdoc.1.html: docbook2mdoc.1
                     31:        mandoc -Thtml docbook2mdoc.1 >$@
                     32:
1.3       kristaps   33: printf.html:
                     34:        ./docbook2mdoc printf.xml | mandoc -Thtml > $@
                     35:
                     36: iovec.html:
                     37:        ./docbook2mdoc iovec.xml | mandoc -Thtml > $@
                     38:
                     39: ls.html:
                     40:        ./docbook2mdoc ls.xml | mandoc -Thtml > $@
                     41:
                     42: as.html:
                     43:        ./docbook2mdoc as.xml | mandoc -Thtml > $@
1.5       kristaps   44:
                     45: $(BUILT): docbook2mdoc
1.3       kristaps   46:
1.1       kristaps   47: clean:
1.8       kristaps   48:        rm -f docbook2mdoc docbook2mdoc.o rules.o
1.1       kristaps   49:        rm -rf docbook2mdoc.dSYM
1.3       kristaps   50:        rm -f $(BUILT) index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz

CVSweb