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

Annotation of mandoc/Makefile, Revision 1.33

1.29      kristaps    1: .SUFFIXES:     .html .7
                      2:
1.31      kristaps    3: VERSION        = 1.0.0
                      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 \
                     11:          compat.ln tokens.ln literals.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 \
                     18:          compat.o tokens.o literals.o
1.4       kristaps   19:
1.32      kristaps   20: SRCS   = mdocml.c html.c xml.c libmdocml.c roff.c ml.c mlg.c \
                     21:          compat.c tokens.c literals.c
1.4       kristaps   22:
1.27      kristaps   23: HEADS  = libmdocml.h private.h ml.h roff.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.28      kristaps   38:          test.36 test.37 test.40 test.50
1.7       kristaps   39:
1.9       kristaps   40: SUCCEED        = test.7 test.8 test.9 test.10 test.11 test.12 test.13 \
1.16      kristaps   41:          test.14 test.16 test.17 test.18 test.19 test.21 test.23 \
1.19      kristaps   42:          test.25 test.28 test.29 test.31 test.32 test.33 test.34 \
1.28      kristaps   43:          test.35 test.38 test.39 test.41 test.42 test.43 test.44 \
1.30      kristaps   44:          test.45 test.46 test.47 test.48 test.49 test.51 test.52 \
                     45:          test.54 test.55 test.56 test.57 test.58 test.59 test.60
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.32      kristaps   53: www: $(HTML) $(XML)
1.29      kristaps   54:
1.7       kristaps   55: regress: mdocml
1.26      kristaps   56:        @for f in $(FAIL); do \
                     57:                echo "./mdocml $$f" ; \
                     58:                ./mdocml $$f 1>/dev/null 2>/dev/null || continue ; \
                     59:        done
                     60:        @for f in $(SUCCEED); do \
                     61:                echo "./mdocml $$f" ; \
                     62:                ./mdocml $$f 1>/dev/null || exit 1 ; \
                     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.30      kristaps   72:        ./mdocml -W -fhtml -e -o $@ index.7
1.29      kristaps   73:
1.32      kristaps   74: index.xml: index.7 mdocml.css
1.33    ! kristaps   75:        ./mdocml -W -o $@ index.7
1.32      kristaps   76:
1.31      kristaps   77: mdocml.html: mdocml.1 mdocml.css
                     78:        ./mdocml -W -fhtml -e -o $@ mdocml.1
                     79:
                     80: install-www: www dist
1.32      kristaps   81:        install -m 0644 mdocml.tgz $(PREFIX)/mdocml-$(VERSION).tgz
1.33    ! kristaps   82:        install -m 0644 mdocml.tgz $(PREFIX)/mdocml.tgz
1.32      kristaps   83:        install -m 0644 $(HTML) $(XML) $(PREFIX)/
1.31      kristaps   84:
1.2       kristaps   85: mdocml.tgz: $(INSTALL)
1.31      kristaps   86:        mkdir -p .dist/mdocml/mdocml-$(VERSION)/
                     87:        install -m 0644 $(INSTALL) .dist/mdocml/mdocml-$(VERSION)/
1.33    ! kristaps   88:        ( cd .dist/mdocml/ && tar zcf ../../mdocml.tgz mdocml-$(VERSION)/ )
1.1       kristaps   89:        rm -rf .dist/
                     90:
1.30      kristaps   91: llib-lmdocml.ln: mdocml.ln libmdocml.ln html.ln xml.ln roff.ln ml.ln mlg.ln compat.ln tokens.ln literals.ln
                     92:        $(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln libmdocml.ln html.ln xml.ln roff.ln ml.ln mlg.ln compat.ln tokens.ln literals.ln
1.3       kristaps   93:
1.13      kristaps   94: mdocml.ln: mdocml.c libmdocml.h
1.1       kristaps   95:
1.13      kristaps   96: mdocml.o: mdocml.c libmdocml.h
1.1       kristaps   97:
1.30      kristaps   98: libmdocml.a: libmdocml.o html.o xml.o roff.o ml.o mlg.o compat.o tokens.o literals.o
                     99:        $(AR) rs $@ libmdocml.o html.o xml.o roff.o ml.o mlg.o compat.o tokens.o literals.o
1.12      kristaps  100:
1.21      kristaps  101: xml.ln: xml.c private.h libmdocml.h ml.h
1.4       kristaps  102:
1.21      kristaps  103: xml.o: xml.c private.h libmdocml.h ml.h
1.6       kristaps  104:
1.21      kristaps  105: html.ln: html.c private.h libmdocml.h
1.6       kristaps  106:
1.21      kristaps  107: html.o: html.c private.h libmdocml.h
1.6       kristaps  108:
1.27      kristaps  109: roff.ln: roff.c private.h roff.h libmdocml.h
1.1       kristaps  110:
1.27      kristaps  111: roff.o: roff.c private.h roff.h libmdocml.h
1.1       kristaps  112:
1.13      kristaps  113: libmdocml.ln: libmdocml.c private.h libmdocml.h
1.6       kristaps  114:
1.13      kristaps  115: libmdocml.o: libmdocml.c private.h libmdocml.h
1.20      kristaps  116:
1.21      kristaps  117: ml.ln: ml.c private.h libmdocml.h ml.h
1.20      kristaps  118:
1.21      kristaps  119: ml.o: ml.c private.h libmdocml.h ml.h
                    120:
                    121: mlg.ln: mlg.c private.h libmdocml.h ml.h
                    122:
                    123: mlg.o: mlg.c private.h libmdocml.h ml.h
                    124:
                    125: compat.ln: compat.c
                    126:
                    127: compat.o: compat.c

CVSweb