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

Annotation of mandoc/Makefile, Revision 1.46

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.46    ! kristaps   45:          test.62 test.63 test.67 test.68 test.71 test.72 test.73
1.7       kristaps   46:
1.1       kristaps   47: all: mdocml
                     48:
1.3       kristaps   49: lint: llib-lmdocml.ln
1.1       kristaps   50:
1.45      kristaps   51: dist: mdocml.tgz mdocml-port.tgz
1.2       kristaps   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.45      kristaps   86:        install -m 0644 mdocml-port.tgz $(PREFIX)/mdocml-port-$(VERSION).tgz
                     87:        install -m 0644 mdocml-port.tgz $(PREFIX)/mdocml-port.tgz
1.44      kristaps   88:        install -m 0644 $(HTML) $(XML) $(TEXT) $(PREFIX)/
1.31      kristaps   89:
1.2       kristaps   90: mdocml.tgz: $(INSTALL)
1.31      kristaps   91:        mkdir -p .dist/mdocml/mdocml-$(VERSION)/
                     92:        install -m 0644 $(INSTALL) .dist/mdocml/mdocml-$(VERSION)/
1.45      kristaps   93:        ( cd .dist/mdocml/ && tar zcf ../../$@ mdocml-$(VERSION)/ )
                     94:        rm -rf .dist/
                     95:
                     96: mdocml-port.tgz: $(INSTALL)
                     97:        mkdir -p .dist/mdocml/pkg
                     98:        sed -e "s!@VERSION@!$(VERSION)!" Makefile.port > .dist/mdocml/Makefile
                     99:        md5 mdocml-$(VERSION).tgz > .dist/mdocml/distinfo
                    100:        rmd160 mdocml-$(VERSION).tgz >> .dist/mdocml/distinfo
                    101:        sha1 mdocml-$(VERSION).tgz >> .dist/mdocml/distinfo
                    102:        install -m 0644 DESCR .dist/mdocml/pkg/DESCR
                    103:        echo @comment $$OpenBSD$$ > .dist/mdocml/pkg/PLIST
                    104:        echo bin/mdocml >> .dist/mdocml/pkg/PLIST
                    105:        echo @man man/man1/mdocml.1 >> .dist/mdocml/pkg/PLIST
                    106:        ( cd .dist/ && tar zcf ../$@ mdocml/ )
1.1       kristaps  107:        rm -rf .dist/
                    108:
1.39      kristaps  109: 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
                    110:        $(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  111:
1.13      kristaps  112: mdocml.ln: mdocml.c libmdocml.h
1.1       kristaps  113:
1.13      kristaps  114: mdocml.o: mdocml.c libmdocml.h
1.1       kristaps  115:
1.39      kristaps  116: libmdocml.a: libmdocml.o html.o xml.o roff.o ml.o mlg.o compat.o tokens.o literals.o tags.o
                    117:        $(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  118:
1.21      kristaps  119: xml.ln: xml.c private.h libmdocml.h ml.h
1.4       kristaps  120:
1.21      kristaps  121: xml.o: xml.c private.h libmdocml.h ml.h
1.6       kristaps  122:
1.21      kristaps  123: html.ln: html.c private.h libmdocml.h
1.6       kristaps  124:
1.21      kristaps  125: html.o: html.c private.h libmdocml.h
1.6       kristaps  126:
1.39      kristaps  127: tags.ln: tags.c html.h
                    128:
                    129: tags.o: tags.c html.h
                    130:
1.27      kristaps  131: roff.ln: roff.c private.h roff.h libmdocml.h
1.1       kristaps  132:
1.27      kristaps  133: roff.o: roff.c private.h roff.h libmdocml.h
1.1       kristaps  134:
1.13      kristaps  135: libmdocml.ln: libmdocml.c private.h libmdocml.h
1.6       kristaps  136:
1.13      kristaps  137: libmdocml.o: libmdocml.c private.h libmdocml.h
1.20      kristaps  138:
1.21      kristaps  139: ml.ln: ml.c private.h libmdocml.h ml.h
1.20      kristaps  140:
1.21      kristaps  141: ml.o: ml.c private.h libmdocml.h ml.h
                    142:
                    143: mlg.ln: mlg.c private.h libmdocml.h ml.h
                    144:
                    145: mlg.o: mlg.c private.h libmdocml.h ml.h
                    146:
                    147: compat.ln: compat.c
                    148:
                    149: compat.o: compat.c
1.39      kristaps  150:
                    151: html.h: ml.h
                    152:
                    153: ml.h: private.h
                    154:
                    155: private.h: libmdocml.h
                    156:

CVSweb