Annotation of mandoc/Makefile, Revision 1.8
1.8 ! kristaps 1: CFLAGS += -W -Wall -Wno-unused-parameter -g
1.7 kristaps 2:
1.4 kristaps 3: LINTFLAGS += -c -e -f -u
4:
1.6 kristaps 5: LNS = mdocml.ln html4_strict.ln dummy.ln libmdocml.ln roff.ln
1.4 kristaps 6:
7: LLNS = llib-lmdocml.ln
8:
9: LIBS = libmdocml.a
10:
1.6 kristaps 11: OBJS = mdocml.o html4_strict.o dummy.o libmdocml.o roff.o
1.4 kristaps 12:
1.6 kristaps 13: SRCS = mdocml.c html4_strict.c dummy.c libmdocml.c roff.c
1.4 kristaps 14:
15: HEADS = libmdocml.h private.h
1.1 kristaps 16:
1.4 kristaps 17: MANS = mdocml.1
18:
19: CLEAN = mdocml mdocml.tgz $(LLNS) $(LNS) $(OBJS) $(LIBS)
1.1 kristaps 20:
1.4 kristaps 21: INSTALL = Makefile $(HEADS) $(SRCS) $(MANS)
1.1 kristaps 22:
1.7 kristaps 23: FAIL = test.0 test.1 test.2 test.3 test.4 test.5 test.6 \
24: test.15
25:
26: SUCCEED = test.7 test.8 test.9 test.10 test.11 test.12 test.13
27:
1.1 kristaps 28:
29: all: mdocml
30:
1.3 kristaps 31: lint: llib-lmdocml.ln
1.1 kristaps 32:
1.2 kristaps 33: dist: mdocml.tgz
34:
1.7 kristaps 35: regress: mdocml
1.8 ! kristaps 36: @for f in $(FAIL); do ./mdocml $$f 1>/dev/null 2>/dev/null || continue ; done
! 37: @for f in $(SUCCEED); do ./mdocml $$f 1>/dev/null || exit 1 ; done
1.7 kristaps 38:
1.4 kristaps 39: mdocml: mdocml.o libmdocml.a
40: $(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.a
1.1 kristaps 41:
42: clean:
43: rm -f $(CLEAN)
44:
1.2 kristaps 45: mdocml.tgz: $(INSTALL)
1.1 kristaps 46: mkdir -p .dist/mdocml/
47: install -m 0644 $(INSTALL) .dist/mdocml/
48: ( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ )
49: rm -rf .dist/
50:
1.6 kristaps 51: llib-lmdocml.ln: mdocml.ln libmdocml.ln html4_strict.ln dummy.ln roff.ln
52: $(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln libmdocml.ln html4_strict.ln dummy.ln roff.ln
1.3 kristaps 53:
1.1 kristaps 54: mdocml.ln: mdocml.c
55:
56: mdocml.o: mdocml.c
57:
58: mdocml.c: libmdocml.h
59:
1.6 kristaps 60: libmdocml.a: libmdocml.o html4_strict.o dummy.o roff.o
61: $(AR) rs $@ libmdocml.o html4_strict.o dummy.o roff.o
1.4 kristaps 62:
63: html4_strict.ln: html4_strict.c
64:
65: html4_strict.o: html4_strict.c
66:
67: html4_strict.c: private.h libmdocml.h
68:
1.6 kristaps 69: roff.ln: roff.c
70:
71: roff.o: roff.c
72:
73: roff.c: private.h libmdocml.h
74:
1.1 kristaps 75: libmdocml.ln: libmdocml.c
76:
77: libmdocml.o: libmdocml.c
78:
1.4 kristaps 79: libmdocml.c: private.h libmdocml.h
1.6 kristaps 80:
CVSweb