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