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

File: [cvsweb.bsd.lv] / texi2mdoc / Makefile (download)

Revision 1.4, Fri Feb 20 09:58:50 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.3: +13 -7 lines

Split utility functions out of main.c.

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

www: index.html texi2mdoc.1.html

afl: afl/texi2mdoc

texi2mdoc: $(OBJS)
	$(CC) -o $@ $(OBJS)

$(OBJS): extern.h

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 $(OBJS)
	rm -f texi2mdoc afl/texi2mdoc
	rm -rf texi2mdoc.dSYM afl/texi2mdoc.dSYM
	rm -f index.html texi2mdoc.1.html