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

Diff for /mandoc/Makefile between version 1.76 and 1.79

version 1.76, 2009/02/22 22:58:39 version 1.79, 2009/02/23 15:19:47
Line 1 
Line 1 
   .SUFFIXES:      .html .sgml
   
 VERSION = 1.3.0  VERSION = 1.3.0
   
 CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g  CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g
Line 5  CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-par
Line 7  CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-par
 LIBLNS  = macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln \  LIBLNS  = macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln \
           validate.ln action.ln            validate.ln action.ln
   
 TREELNS = mdoctree.ln mmain.ln tree.ln  TREELNS = mdoctree.ln mmain.ln
   
 TERMLNS = mdoctree.ln mmain.ln term.ln termact.ln  TERMLNS = mdoctree.ln mmain.ln term.ln
   
   LINTLNS = mdoclint.ln mmain.ln
   
 LNS     = $(LIBLNS) $(TREELNS) $(TERMLNS)  LNS     = $(LIBLNS) $(TREELNS) $(TERMLNS)
   
 LLNS    = llib-llibmdoc.ln llib-lmdoctree.ln llib-lmdocterm.ln  LLNS    = llib-llibmdoc.ln llib-lmdoctree.ln llib-lmdocterm.ln
Line 18  LIBS = libmdoc.a
Line 22  LIBS = libmdoc.a
 LIBOBJS = macro.o mdoc.o hash.o strings.o xstd.o argv.o \  LIBOBJS = macro.o mdoc.o hash.o strings.o xstd.o argv.o \
           validate.o action.o            validate.o action.o
   
 TERMOBJS= mdocterm.o mmain.o term.o termact.o  TERMOBJS= mdocterm.o mmain.o term.o
   
 TREEOBJS= mdoctree.o mmain.o tree.o  TREEOBJS= mdoctree.o mmain.o
   
   LINTOBJS= mdoclint.o mmain.o
   
 OBJS    = $(LIBOBJS) $(TERMOBJS) $(TREEOBJS)  OBJS    = $(LIBOBJS) $(TERMOBJS) $(TREEOBJS)
   
 SRCS    = macro.c mdoc.c hash.c strings.c xstd.c argv.c validate.c \  SRCS    = macro.c mdoc.c hash.c strings.c xstd.c argv.c validate.c \
           action.c term.c tree.c termact.c mdoctree.c mdocterm.c \            action.c term.c mdoctree.c mdocterm.c mmain.c mdoclint.c
           mmain.c  
   
 HEADS   = mdoc.h private.h term.h mmain.h  HEADS   = mdoc.h private.h term.h mmain.h
   
   SGMLS   = index.sgml
   
   HTMLS   = index.html
   
   STATICS = style.css external.png
   
 MANS    = mdoctree.1 mdocterm.1 mdoc.3  MANS    = mdoctree.1 mdocterm.1 mdoc.3
   
 BINS    = mdocterm mdoctree  BINS    = mdocterm mdoctree mdoclint
   
 CLEAN   = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS)  CLEAN   = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) $(HTMLS)
   
 INSTALL = $(SRCS) $(HEADS) Makefile Makefile.port DESCR $(MANS)  INSTALL = $(SRCS) $(HEADS) Makefile Makefile.port DESCR $(MANS) \
             $(SGMLS) $(STATICS)
   
 FAIL    = regress/test.empty \  FAIL    = regress/test.empty \
           regress/test.prologue.00 \            regress/test.prologue.00 \
Line 65  FAIL = regress/test.empty \
Line 77  FAIL = regress/test.empty \
           regress/test.prologue.33 \            regress/test.prologue.33 \
           regress/test.sh.01 \            regress/test.sh.01 \
           regress/test.sh.02 \            regress/test.sh.02 \
           regress/test.sh.03 \            regress/test.sh.03
           regress/test.name.01 \  
           regress/test.name.02 \  
           regress/test.name.03  
   
 SUCCEED = regress/test.prologue.05 \  SUCCEED = regress/test.prologue.05 \
           regress/test.prologue.07 \            regress/test.prologue.07 \
Line 82  SUCCEED = regress/test.prologue.05 \
Line 91  SUCCEED = regress/test.prologue.05 \
           regress/test.prologue.20 \            regress/test.prologue.20 \
           regress/test.sh.00 \            regress/test.sh.00 \
           regress/test.name.00 \            regress/test.name.00 \
             regress/test.name.01 \
             regress/test.name.02 \
             regress/test.name.03 \
           regress/test.list.00 \            regress/test.list.00 \
           regress/test.list.01 \            regress/test.list.01 \
           regress/test.list.02 \            regress/test.list.02 \
Line 101  dist: mdocml-$(VERSION).tar.gz
Line 113  dist: mdocml-$(VERSION).tar.gz
   
 port:   mdocml-oport-$(VERSION).tar.gz  port:   mdocml-oport-$(VERSION).tar.gz
   
 regress:: mdocml  www:    $(HTMLS)
   
   regress:: mdoclint
         @for f in $(FAIL); do \          @for f in $(FAIL); do \
                 echo "./mdocml $$f" ; \                  echo "./mdoclint $$f" ; \
                 ./mdocml $$f 2>/dev/null || continue ; exit 1 ; done                  ./mdoclint $$f 2>/dev/null || continue ; exit 1 ; done
         @for f in $(SUCCEED); do \          @for f in $(SUCCEED); do \
                 echo "./mdocml $$f" ; \                  echo "./mdoclint $$f" ; \
                 ./mdocml $$f 2>/dev/null || exit 1 ; done                  ./mdoclint $$f 2>/dev/null || exit 1 ; done
   
 install:  install:
         mkdir -p $(PREFIX)/bin/          mkdir -p $(PREFIX)/bin/
Line 140  uninstall:
Line 154  uninstall:
 macro.ln: macro.c private.h  macro.ln: macro.c private.h
 macro.o: macro.c private.h  macro.o: macro.c private.h
   
 tree.ln: tree.c mdoc.h  
 tree.o: tree.c mdoc.h  
   
 term.ln: term.c term.h  term.ln: term.c term.h
 term.o: term.c term.h  term.o: term.c term.h
   
 termact.ln: termact.c term.h  
 termact.o: termact.c term.h  
   
 strings.ln: strings.c private.h  strings.ln: strings.c private.h
 strings.o: strings.c private.h  strings.o: strings.c private.h
   
Line 161  mdoc.o: mdoc.c private.h
Line 169  mdoc.o: mdoc.c private.h
 mdocterm.ln: mdocterm.c mmain.h  mdocterm.ln: mdocterm.c mmain.h
 mdocterm.o: mdocterm.c mmain.h  mdocterm.o: mdocterm.c mmain.h
   
   mdoclint.ln: mdoclint.c mmain.h
   mdoclint.o: mdoclint.c mmain.h
   
 mdoctree.ln: mdoctree.c mmain.h  mdoctree.ln: mdoctree.c mmain.h
 mdoctree.o: mdoctree.c mmain.h  mdoctree.o: mdoctree.c mmain.h
   
Line 195  mdocml-oport-$(VERSION).tar.gz: Makefile.port DESCR
Line 206  mdocml-oport-$(VERSION).tar.gz: Makefile.port DESCR
         echo @comment $$OpenBSD$$ > .dist/mdocml/pkg/PLIST          echo @comment $$OpenBSD$$ > .dist/mdocml/pkg/PLIST
         echo bin/mdocterm >> .dist/mdocml/pkg/PLIST          echo bin/mdocterm >> .dist/mdocml/pkg/PLIST
         echo bin/mdoctree >> .dist/mdocml/pkg/PLIST          echo bin/mdoctree >> .dist/mdocml/pkg/PLIST
           echo bin/mdoclint >> .dist/mdocml/pkg/PLIST
         echo lib/libmdoc.a >> .dist/mdocml/pkg/PLIST          echo lib/libmdoc.a >> .dist/mdocml/pkg/PLIST
         echo include/mdoc.h >> .dist/mdocml/pkg/PLIST          echo include/mdoc.h >> .dist/mdocml/pkg/PLIST
         echo @man man/man1/mdoctree.1 >> .dist/mdocml/pkg/PLIST          echo @man man/man1/mdoctree.1 >> .dist/mdocml/pkg/PLIST
         echo @man man/man1/mdocterm.1 >> .dist/mdocml/pkg/PLIST          echo @man man/man1/mdocterm.1 >> .dist/mdocml/pkg/PLIST
           echo @man man/man1/mdoclint.1 >> .dist/mdocml/pkg/PLIST
         echo @man man/man3/mdoc.3 >> .dist/mdocml/pkg/PLIST          echo @man man/man3/mdoc.3 >> .dist/mdocml/pkg/PLIST
         ( cd .dist/ && tar zcf ../$@ mdocml/ )          ( cd .dist/ && tar zcf ../$@ mdocml/ )
         rm -rf .dist/          rm -rf .dist/
Line 227  mdocterm: $(TERMOBJS) libmdoc.a
Line 240  mdocterm: $(TERMOBJS) libmdoc.a
 mdoctree: $(TREEOBJS) libmdoc.a  mdoctree: $(TREEOBJS) libmdoc.a
         $(CC) $(CFLAGS) -o $@ $(TREEOBJS) libmdoc.a          $(CC) $(CFLAGS) -o $@ $(TREEOBJS) libmdoc.a
   
   mdoclint: $(LINTOBJS) libmdoc.a
           $(CC) $(CFLAGS) -o $@ $(LINTOBJS) libmdoc.a
   
   .sgml.html:
           validate $<
           cp -f $< $@

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.79

CVSweb