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

Annotation of mandoc/Makefile, Revision 1.43

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

CVSweb