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

Annotation of mandoc/Makefile, Revision 1.12

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

CVSweb