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

Annotation of texi2mdoc/Makefile, Revision 1.5

1.2       kristaps    1: CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
1.4       kristaps    2: OBJS = main.o util.o
                      3: SRCS = main.c util.c
                      4: VERSIONS = version_0_1_1.xml
1.5     ! kristaps    5: VERSION = 0.1.1
        !             6: PREFIX = /usr/local
1.2       kristaps    7:
                      8: all: texi2mdoc
                      9:
1.5     ! kristaps   10: www: index.html texi2mdoc.1.html texi2mdoc.tgz texi2mdoc.tgz.sha512
1.3       kristaps   11:
1.2       kristaps   12: afl: afl/texi2mdoc
1.1       kristaps   13:
1.4       kristaps   14: texi2mdoc: $(OBJS)
                     15:        $(CC) -o $@ $(OBJS)
1.1       kristaps   16:
1.5     ! kristaps   17: install: all
        !            18:        mkdir -p $(DESTDIR)$(PREFIX)/bin
        !            19:        mkdir -p $(DESTDIR)$(PREFIX)/man/man1
        !            20:        install -m 0755 texi2mdoc $(DESTDIR)$(PREFIX)/bin
        !            21:        install -m 0444 texi2mdoc.1 $(DESTDIR)$(PREFIX)/man/man1
        !            22:
        !            23: installwww:
        !            24:        mkdir -p $(PREFIX)/snapshots
        !            25:        install -m 0444 index.html texi2mdoc.1.html $(PREFIX)
        !            26:        install -m 0444 texi2mdoc.tgz texi2mdoc.tgz.sha512 $(PREFIX)/snapshots
        !            27:        install -m 0444 texi2mdoc.tgz $(PREFIX)/snapshots/texi2mdoc-$(VERSION).tgz
        !            28:        install -m 0444 texi2mdoc.tgz.sha512 $(PREFIX)/snapshots/texi2mdoc-$(VERSION).tgz.sha512
        !            29:
1.4       kristaps   30: $(OBJS): extern.h
1.2       kristaps   31:
1.4       kristaps   32: afl/texi2mdoc: extern.h $(SRCS)
                     33:        afl-clang -o $@ $(SRCS)
                     34:
                     35: index.html: index.xml $(VERSIONS)
1.5     ! kristaps   36:        sblg -o- -t index.xml $(VERSIONS) | sed "s!@VERSION@!$(VERSION)!g" >$@
1.3       kristaps   37:
                     38: texi2mdoc.1.html: texi2mdoc.1
                     39:        mandoc -Thtml $< >$@
                     40:
1.5     ! kristaps   41: texi2mdoc.tgz:
        !            42:        mkdir -p .dist/texi2mdoc-$(VERSION)
        !            43:        install -m 0444 $(SRCS) extern.h Makefile texi2mdoc.1 .dist/texi2mdoc-$(VERSION)
        !            44:        (cd .dist && tar zcf ../$@ texi2mdoc-$(VERSION))
        !            45:        rm -rf .dist
        !            46:
        !            47: texi2mdoc.tgz.sha512: texi2mdoc.tgz
        !            48:        openssl dgst -sha512 texi2mdoc.tgz >$@
        !            49:
1.1       kristaps   50: clean:
1.4       kristaps   51:        rm -f $(OBJS)
                     52:        rm -f texi2mdoc afl/texi2mdoc
1.2       kristaps   53:        rm -rf texi2mdoc.dSYM afl/texi2mdoc.dSYM
1.5     ! kristaps   54:        rm -f index.html texi2mdoc.1.html texi2mdoc.tgz texi2mdoc.tgz.sha512

CVSweb