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

Diff for /mandoc/Makefile between version 1.400 and 1.408

version 1.400, 2012/06/09 14:19:55 version 1.408, 2014/01/04 13:40:01
Line 6 
Line 6 
 # Specify this if you want to hard-code the operating system to appear  # Specify this if you want to hard-code the operating system to appear
 # in the lower-left hand corner of -mdoc manuals.  # in the lower-left hand corner of -mdoc manuals.
 #  #
 # CFLAGS        += -DOSNAME="\"OpenBSD 4.5\""  # CFLAGS        += -DOSNAME="\"OpenBSD 5.4\""
   
 VERSION          = 1.12.1  VERSION          = 1.12.3
 VDATE            = 23 March 2012  VDATE            = 31 December 2013
   
 # IFF your system supports multi-byte functions (setlocale(), wcwidth(),  # IFF your system supports multi-byte functions (setlocale(), wcwidth(),
 # putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a  # putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a
Line 24  CFLAGS   += -DUSE_WCHAR
Line 24  CFLAGS   += -DUSE_WCHAR
 # mandocdb(8) will use manpath(1) to get the MANPATH variable.  # mandocdb(8) will use manpath(1) to get the MANPATH variable.
 #CFLAGS         += -DUSE_MANPATH  #CFLAGS         += -DUSE_MANPATH
   
 # If your system supports static binaries only, uncomment this.  This  # If your system does not support static binaries, comment this,
 # appears only to be BSD UNIX systems (Mac OS X has no support and Linux  # for example on Mac OS X.
 # requires -pthreads for static libdb).  
 STATIC           = -static  STATIC           = -static
   # Linux requires -pthread to statically link with libdb.
   #STATIC         += -pthread
   
 CFLAGS          += -I/usr/local/include -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""  CFLAGS          += -I/usr/local/include -g -DHAVE_CONFIG_H
 CFLAGS          += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings  CFLAGS          += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
 PREFIX           = /usr/local  PREFIX           = /usr/local
 WWWPREFIX        = /var/www  WWWPREFIX        = /var/www
Line 52  DBBIN   = mandocdb manpage apropos
Line 53  DBBIN   = mandocdb manpage apropos
   
 all: mandoc preconv demandoc $(DBBIN)  all: mandoc preconv demandoc $(DBBIN)
   
   TESTSRCS         = test-fgetln.c \
                      test-getsubopt.c \
                      test-mmap.c \
                      test-ohash.c \
                      test-strlcat.c \
                      test-strlcpy.c \
                      test-strnlen.c \
                      test-strptime.c
   
 SRCS             = Makefile \  SRCS             = Makefile \
                      NEWS \
                    TODO \                     TODO \
                      apropos.1 \
                      apropos.c \
                    arch.c \                     arch.c \
                    arch.in \                     arch.in \
                    att.c \                     att.c \
Line 63  SRCS   = Makefile \
Line 76  SRCS   = Makefile \
                    chars.in \                     chars.in \
                    compat_fgetln.c \                     compat_fgetln.c \
                    compat_getsubopt.c \                     compat_getsubopt.c \
                      compat_strcasestr.c \
                    compat_strlcat.c \                     compat_strlcat.c \
                    compat_strlcpy.c \                     compat_strlcpy.c \
                      compat_strnlen.c \
                      compat_strsep.c \
                    config.h.post \                     config.h.post \
                    config.h.pre \                     config.h.pre \
                    demandoc.1 \                     demandoc.1 \
Line 75  SRCS   = Makefile \
Line 91  SRCS   = Makefile \
                    eqn_term.c \                     eqn_term.c \
                    example.style.css \                     example.style.css \
                    external.png \                     external.png \
                      gmdiff \
                    html.c \                     html.c \
                    html.h \                     html.h \
                    index.css \                     index.css \
Line 128  SRCS   = Makefile \
Line 145  SRCS   = Makefile \
                    st.c \                     st.c \
                    st.in \                     st.in \
                    style.css \                     style.css \
                      tbl.3 \
                    tbl.7 \                     tbl.7 \
                    tbl.c \                     tbl.c \
                    tbl_data.c \                     tbl_data.c \
Line 139  SRCS   = Makefile \
Line 157  SRCS   = Makefile \
                    term.h \                     term.h \
                    term_ascii.c \                     term_ascii.c \
                    term_ps.c \                     term_ps.c \
                    test-fgetln.c \  
                    test-getsubopt.c \  
                    test-mmap.c \  
                    test-ohash.c \  
                    test-strlcat.c \  
                    test-strlcpy.c \  
                    test-strptime.c \  
                    tree.c \                     tree.c \
                    vol.c \                     vol.c \
                    vol.in                     vol.in \
                      $(TESTSRCS)
   
 LIBMAN_OBJS      = man.o \  LIBMAN_OBJS      = man.o \
                    man_hash.o \                     man_hash.o \
Line 184  LIBMANDOC_OBJS  = $(LIBMAN_OBJS) \
Line 196  LIBMANDOC_OBJS  = $(LIBMAN_OBJS) \
 COMPAT_OBJS      = compat_fgetln.o \  COMPAT_OBJS      = compat_fgetln.o \
                    compat_getsubopt.o \                     compat_getsubopt.o \
                    compat_ohash.o \                     compat_ohash.o \
                      compat_strcasestr.o \
                    compat_strlcat.o \                     compat_strlcat.o \
                    compat_strlcpy.o                     compat_strlcpy.o \
                      compat_strnlen.o \
                      compat_strsep.o
   
 arch.o: arch.in  arch.o: arch.in
 att.o: att.in  att.o: att.in
Line 243  $(MANPAGE_OBJS): config.h manpath.h mansearch.h
Line 258  $(MANPAGE_OBJS): config.h manpath.h mansearch.h
 DEMANDOC_OBJS    = demandoc.o  DEMANDOC_OBJS    = demandoc.o
 $(DEMANDOC_OBJS): config.h  $(DEMANDOC_OBJS): config.h
   
 INDEX_MANS       = demandoc.1.html \  INDEX_MANS       = apropos.1.html \
                      demandoc.1.html \
                    mandoc.1.html \                     mandoc.1.html \
                      preconv.1.html \
                    mandoc.3.html \                     mandoc.3.html \
                      tbl.3.html \
                    eqn.7.html \                     eqn.7.html \
                    man.7.html \                     man.7.html \
                    mandoc_char.7.html \                     mandoc_char.7.html \
                    mdoc.7.html \                     mdoc.7.html \
                    preconv.1.html \  
                    roff.7.html \                     roff.7.html \
                    tbl.7.html \                     tbl.7.html \
                    mandocdb.8.html                     mandocdb.8.html
Line 291  install: all
Line 308  install: all
         $(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR)          $(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR)
         $(INSTALL_LIB) man.h mdoc.h mandoc.h $(DESTDIR)$(INCLUDEDIR)          $(INSTALL_LIB) man.h mdoc.h mandoc.h $(DESTDIR)$(INCLUDEDIR)
         $(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1          $(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1
         $(INSTALL_MAN) mandoc.3 $(DESTDIR)$(MANDIR)/man3          $(INSTALL_MAN) mandoc.3 tbl.3 $(DESTDIR)$(MANDIR)/man3
         $(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7          $(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7
         $(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR)          $(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR)
   
Line 345  mdocml.tar.gz: $(SRCS)
Line 362  mdocml.tar.gz: $(SRCS)
   
 index.html: $(INDEX_OBJS)  index.html: $(INDEX_OBJS)
   
 config.h: config.h.pre config.h.post  config.h: configure config.h.pre config.h.post $(TESTSRCS)
         rm -f config.log          rm -f config.log
         ( cat config.h.pre; \          CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure
           echo; \  
           if $(CC) $(CFLAGS) -Werror -o test-ohash test-ohash.c >> config.log 2>&1; then \  
                 echo '#define HAVE_OHASH'; \  
                 rm test-ohash; \  
           fi; \  
           if $(CC) $(CFLAGS) -Werror -o test-fgetln test-fgetln.c >> config.log 2>&1; then \  
                 echo '#define HAVE_FGETLN'; \  
                 rm test-fgetln; \  
           fi; \  
           if $(CC) $(CFLAGS) -Werror -o test-strptime test-strptime.c >> config.log 2>&1; then \  
                 echo '#define HAVE_STRPTIME'; \  
                 rm test-strptime; \  
           fi; \  
           if $(CC) $(CFLAGS) -Werror -o test-getsubopt test-getsubopt.c >> config.log 2>&1; then \  
                 echo '#define HAVE_GETSUBOPT'; \  
                 rm test-getsubopt; \  
           fi; \  
           if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \  
                 echo '#define HAVE_STRLCAT'; \  
                 rm test-strlcat; \  
           fi; \  
           if $(CC) $(CFLAGS) -Werror -o test-mmap test-mmap.c >> config.log 2>&1; then \  
                 echo '#define HAVE_MMAP'; \  
                 rm test-mmap; \  
           fi; \  
           if $(CC) $(CFLAGS) -Werror -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \  
                 echo '#define HAVE_STRLCPY'; \  
                 rm test-strlcpy; \  
           fi; \  
           echo; \  
           cat config.h.post \  
         ) > $@  
   
 .h.h.html:  .h.h.html:
         highlight -I $< >$@          highlight -I $< >$@

Legend:
Removed from v.1.400  
changed lines
  Added in v.1.408

CVSweb