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