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

Annotation of mandoc/Makefile, Revision 1.29

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

CVSweb