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

Annotation of docbook2mdoc/Makefile, Revision 1.5

1.4       kristaps    1: VERSION = 0.0.3
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:
                      6: docbook2mdoc: docbook2mdoc.o
                      7:        $(CC) -o $@ docbook2mdoc.o -lexpat
                      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
        !            13:        install -m 0444 index.html docbook2mdoc.1.html $(WWWPREFIX)
        !            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)
                     21:        install -m 0444 docbook2mdoc.c Makefile docbook2mdoc.1 .dist/docbook2mdoc-$(VERSION)
                     22:        (cd .dist && tar zcf ../$@ docbook2mdoc-$(VERSION))
                     23:        rm -rf .dist
                     24:
                     25: index.html: index.xml
                     26:        sed "s!@VERSION@!$(VERSION)!g" index.xml >$@
                     27:
                     28: docbook2mdoc.1.html: docbook2mdoc.1
                     29:        mandoc -Thtml docbook2mdoc.1 >$@
                     30:
1.3       kristaps   31: printf.html:
                     32:        ./docbook2mdoc printf.xml | mandoc -Thtml > $@
                     33:
                     34: iovec.html:
                     35:        ./docbook2mdoc iovec.xml | mandoc -Thtml > $@
                     36:
                     37: ls.html:
                     38:        ./docbook2mdoc ls.xml | mandoc -Thtml > $@
                     39:
                     40: as.html:
                     41:        ./docbook2mdoc as.xml | mandoc -Thtml > $@
1.5     ! kristaps   42:
        !            43: $(BUILT): docbook2mdoc
1.3       kristaps   44:
1.1       kristaps   45: clean:
1.3       kristaps   46:        rm -f docbook2mdoc docbook2mdoc.o
1.1       kristaps   47:        rm -rf docbook2mdoc.dSYM
1.3       kristaps   48:        rm -f $(BUILT) index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz

CVSweb