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

Annotation of mandoc/Makefile, Revision 1.39

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

CVSweb