=================================================================== RCS file: /cvs/texi2mdoc/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- texi2mdoc/Makefile 2015/02/19 15:34:20 1.3 +++ texi2mdoc/Makefile 2015/02/20 09:58:50 1.4 @@ -1,4 +1,7 @@ CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings +OBJS = main.o util.o +SRCS = main.c util.c +VERSIONS = version_0_1_1.xml all: texi2mdoc @@ -6,19 +9,22 @@ www: index.html texi2mdoc.1.html afl: afl/texi2mdoc -texi2mdoc: main.o - $(CC) -o $@ main.o +texi2mdoc: $(OBJS) + $(CC) -o $@ $(OBJS) -afl/texi2mdoc: main.c - afl-clang -o $@ main.c +$(OBJS): extern.h -index.html: index.xml - cp index.xml $@ +afl/texi2mdoc: extern.h $(SRCS) + afl-clang -o $@ $(SRCS) +index.html: index.xml $(VERSIONS) + sblg -o $@ -t index.xml $(VERSIONS) + texi2mdoc.1.html: texi2mdoc.1 mandoc -Thtml $< >$@ clean: - rm -f texi2mdoc main.o afl/texi2mdoc + rm -f $(OBJS) + rm -f texi2mdoc afl/texi2mdoc rm -rf texi2mdoc.dSYM afl/texi2mdoc.dSYM rm -f index.html texi2mdoc.1.html