version 1.4, 2015/02/20 09:58:50 |
version 1.5, 2015/02/20 14:43:22 |
Line 2 CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused- |
|
Line 2 CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused- |
|
OBJS = main.o util.o |
OBJS = main.o util.o |
SRCS = main.c util.c |
SRCS = main.c util.c |
VERSIONS = version_0_1_1.xml |
VERSIONS = version_0_1_1.xml |
|
VERSION = 0.1.1 |
|
PREFIX = /usr/local |
|
|
all: texi2mdoc |
all: texi2mdoc |
|
|
www: index.html texi2mdoc.1.html |
www: index.html texi2mdoc.1.html texi2mdoc.tgz texi2mdoc.tgz.sha512 |
|
|
afl: afl/texi2mdoc |
afl: afl/texi2mdoc |
|
|
texi2mdoc: $(OBJS) |
texi2mdoc: $(OBJS) |
$(CC) -o $@ $(OBJS) |
$(CC) -o $@ $(OBJS) |
|
|
|
install: all |
|
mkdir -p $(DESTDIR)$(PREFIX)/bin |
|
mkdir -p $(DESTDIR)$(PREFIX)/man/man1 |
|
install -m 0755 texi2mdoc $(DESTDIR)$(PREFIX)/bin |
|
install -m 0444 texi2mdoc.1 $(DESTDIR)$(PREFIX)/man/man1 |
|
|
|
installwww: |
|
mkdir -p $(PREFIX)/snapshots |
|
install -m 0444 index.html texi2mdoc.1.html $(PREFIX) |
|
install -m 0444 texi2mdoc.tgz texi2mdoc.tgz.sha512 $(PREFIX)/snapshots |
|
install -m 0444 texi2mdoc.tgz $(PREFIX)/snapshots/texi2mdoc-$(VERSION).tgz |
|
install -m 0444 texi2mdoc.tgz.sha512 $(PREFIX)/snapshots/texi2mdoc-$(VERSION).tgz.sha512 |
|
|
$(OBJS): extern.h |
$(OBJS): extern.h |
|
|
afl/texi2mdoc: extern.h $(SRCS) |
afl/texi2mdoc: extern.h $(SRCS) |
afl-clang -o $@ $(SRCS) |
afl-clang -o $@ $(SRCS) |
|
|
index.html: index.xml $(VERSIONS) |
index.html: index.xml $(VERSIONS) |
sblg -o $@ -t index.xml $(VERSIONS) |
sblg -o- -t index.xml $(VERSIONS) | sed "s!@VERSION@!$(VERSION)!g" >$@ |
|
|
texi2mdoc.1.html: texi2mdoc.1 |
texi2mdoc.1.html: texi2mdoc.1 |
mandoc -Thtml $< >$@ |
mandoc -Thtml $< >$@ |
|
|
|
texi2mdoc.tgz: |
|
mkdir -p .dist/texi2mdoc-$(VERSION) |
|
install -m 0444 $(SRCS) extern.h Makefile texi2mdoc.1 .dist/texi2mdoc-$(VERSION) |
|
(cd .dist && tar zcf ../$@ texi2mdoc-$(VERSION)) |
|
rm -rf .dist |
|
|
|
texi2mdoc.tgz.sha512: texi2mdoc.tgz |
|
openssl dgst -sha512 texi2mdoc.tgz >$@ |
|
|
clean: |
clean: |
rm -f $(OBJS) |
rm -f $(OBJS) |
rm -f texi2mdoc afl/texi2mdoc |
rm -f texi2mdoc afl/texi2mdoc |
rm -rf texi2mdoc.dSYM afl/texi2mdoc.dSYM |
rm -rf texi2mdoc.dSYM afl/texi2mdoc.dSYM |
rm -f index.html texi2mdoc.1.html |
rm -f index.html texi2mdoc.1.html texi2mdoc.tgz texi2mdoc.tgz.sha512 |