Home | History | Annotate | Line # | Download | only in dist
Makefile revision 1.1.1.11.2.1
      1      1.1.1.10  joerg .PHONY: 	 clean install installwww
      2      1.1.1.10  joerg .SUFFIXES:	 .sgml .html .md5 .h .h.html
      3      1.1.1.11  joerg .SUFFIXES:	 .1       .3       .7       .8
      4      1.1.1.11  joerg .SUFFIXES:	 .1.txt   .3.txt   .7.txt   .8.txt
      5      1.1.1.11  joerg .SUFFIXES:	 .1.pdf   .3.pdf   .7.pdf   .8.pdf
      6      1.1.1.11  joerg .SUFFIXES:	 .1.ps    .3.ps    .7.ps    .8.ps
      7      1.1.1.11  joerg .SUFFIXES:	 .1.html  .3.html  .7.html  .8.html
      8      1.1.1.11  joerg .SUFFIXES:	 .1.xhtml .3.xhtml .7.xhtml .8.xhtml
      9       1.1.1.2  joerg 
     10       1.1.1.2  joerg # Specify this if you want to hard-code the operating system to appear
     11       1.1.1.2  joerg # in the lower-left hand corner of -mdoc manuals.
     12      1.1.1.11  joerg #
     13      1.1.1.10  joerg # CFLAGS	+= -DOSNAME="\"OpenBSD 4.5\""
     14       1.1.1.2  joerg 
     15      1.1.1.11  joerg VERSION		 = 1.12.0
     16      1.1.1.11  joerg VDATE		 = 8 October 2011
     17      1.1.1.11  joerg 
     18      1.1.1.11  joerg # IFF your system supports multi-byte functions (setlocale(), wcwidth(),
     19      1.1.1.11  joerg # putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a
     20      1.1.1.11  joerg # UCS-4 value) should you define USE_WCHAR.  If you define it and your
     21      1.1.1.11  joerg # system DOESN'T support this, -Tlocale will produce garbage.
     22      1.1.1.11  joerg # If you don't define it, -Tlocale is a synonym for -Tacsii.
     23      1.1.1.11  joerg #
     24      1.1.1.11  joerg CFLAGS	 	+= -DUSE_WCHAR
     25      1.1.1.11  joerg 
     26  1.1.1.11.2.1   yamt # If your system has manpath(1), uncomment this.  This is most any
     27  1.1.1.11.2.1   yamt # system that's not OpenBSD or NetBSD.  If uncommented, apropos(1),
     28  1.1.1.11.2.1   yamt # mandocdb(8), and man.cgi will popen(3) manpath(1) to get the MANPATH
     29  1.1.1.11.2.1   yamt # variable.
     30  1.1.1.11.2.1   yamt #CFLAGS		+= -DUSE_MANPATH
     31  1.1.1.11.2.1   yamt 
     32  1.1.1.11.2.1   yamt # If your system supports static binaries only, uncomment this.  This
     33  1.1.1.11.2.1   yamt # appears only to be BSD UNIX systems (Mac OS X has no support and Linux
     34  1.1.1.11.2.1   yamt # requires -pthreads for static libdb).
     35  1.1.1.11.2.1   yamt STATIC		 = -static
     36  1.1.1.11.2.1   yamt 
     37      1.1.1.10  joerg CFLAGS		+= -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
     38      1.1.1.10  joerg CFLAGS     	+= -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
     39      1.1.1.10  joerg PREFIX		 = /usr/local
     40  1.1.1.11.2.1   yamt WWWPREFIX	 = /var/www
     41  1.1.1.11.2.1   yamt HTDOCDIR	 = $(WWWPREFIX)/htdocs
     42  1.1.1.11.2.1   yamt CGIBINDIR	 = $(WWWPREFIX)/cgi-bin
     43      1.1.1.10  joerg BINDIR		 = $(PREFIX)/bin
     44      1.1.1.10  joerg INCLUDEDIR	 = $(PREFIX)/include/mandoc
     45      1.1.1.10  joerg LIBDIR		 = $(PREFIX)/lib/mandoc
     46      1.1.1.10  joerg MANDIR		 = $(PREFIX)/man
     47      1.1.1.10  joerg EXAMPLEDIR	 = $(PREFIX)/share/examples/mandoc
     48      1.1.1.10  joerg INSTALL		 = install
     49      1.1.1.10  joerg INSTALL_PROGRAM	 = $(INSTALL) -m 0755
     50      1.1.1.10  joerg INSTALL_DATA	 = $(INSTALL) -m 0444
     51      1.1.1.10  joerg INSTALL_LIB	 = $(INSTALL) -m 0644
     52      1.1.1.11  joerg INSTALL_SOURCE	 = $(INSTALL) -m 0644
     53      1.1.1.10  joerg INSTALL_MAN	 = $(INSTALL_DATA)
     54      1.1.1.10  joerg 
     55      1.1.1.11  joerg # Non-BSD systems (Linux, etc.) need -ldb to compile mandocdb and
     56      1.1.1.11  joerg # apropos.
     57      1.1.1.11  joerg # However, if you don't have -ldb at all (or it's not native), then
     58      1.1.1.11  joerg # comment out apropos and mandocdb. 
     59      1.1.1.11  joerg #
     60      1.1.1.11  joerg #DBLIB		 = -ldb
     61  1.1.1.11.2.1   yamt DBBIN		 = apropos mandocdb man.cgi catman whatis
     62  1.1.1.11.2.1   yamt DBLN		 = llib-lapropos.ln llib-lmandocdb.ln llib-lman.cgi.ln llib-lcatman.ln
     63      1.1.1.11  joerg 
     64      1.1.1.11  joerg all: mandoc preconv demandoc $(DBBIN)
     65      1.1.1.10  joerg 
     66      1.1.1.10  joerg SRCS		 = Makefile \
     67  1.1.1.11.2.1   yamt 		   TODO \
     68      1.1.1.11  joerg 		   apropos.1 \
     69      1.1.1.11  joerg 		   apropos.c \
     70  1.1.1.11.2.1   yamt 		   apropos_db.c \
     71  1.1.1.11.2.1   yamt 		   apropos_db.h \
     72      1.1.1.10  joerg 		   arch.c \
     73      1.1.1.10  joerg 		   arch.in \
     74      1.1.1.10  joerg 		   att.c \
     75      1.1.1.10  joerg 		   att.in \
     76  1.1.1.11.2.1   yamt 		   catman.8 \
     77  1.1.1.11.2.1   yamt 		   catman.c \
     78  1.1.1.11.2.1   yamt 		   cgi.c \
     79      1.1.1.10  joerg 		   chars.c \
     80      1.1.1.10  joerg 		   chars.in \
     81  1.1.1.11.2.1   yamt 		   compat_fgetln.c \
     82      1.1.1.11  joerg 		   compat_getsubopt.c \
     83      1.1.1.11  joerg 		   compat_strlcat.c \
     84      1.1.1.11  joerg 		   compat_strlcpy.c \
     85      1.1.1.10  joerg 		   config.h.post \
     86      1.1.1.10  joerg 		   config.h.pre \
     87      1.1.1.11  joerg 		   demandoc.1 \
     88  1.1.1.11.2.1   yamt 		   demandoc.c \
     89      1.1.1.10  joerg 		   eqn.7 \
     90      1.1.1.10  joerg 		   eqn.c \
     91      1.1.1.11  joerg 		   eqn_html.c \
     92      1.1.1.11  joerg 		   eqn_term.c \
     93      1.1.1.10  joerg 		   example.style.css \
     94      1.1.1.10  joerg 		   external.png \
     95      1.1.1.10  joerg 		   html.c \
     96      1.1.1.10  joerg 		   html.h \
     97      1.1.1.10  joerg 		   index.css \
     98      1.1.1.10  joerg 		   index.sgml \
     99      1.1.1.10  joerg 		   lib.c \
    100      1.1.1.10  joerg 		   lib.in \
    101      1.1.1.10  joerg 		   libman.h \
    102      1.1.1.10  joerg 		   libmandoc.h \
    103      1.1.1.10  joerg 		   libmdoc.h \
    104      1.1.1.10  joerg 		   libroff.h \
    105      1.1.1.10  joerg 		   main.c \
    106      1.1.1.10  joerg 		   main.h \
    107      1.1.1.10  joerg 		   man.7 \
    108      1.1.1.10  joerg 		   man.c \
    109  1.1.1.11.2.1   yamt 		   man.cgi.7 \
    110  1.1.1.11.2.1   yamt 		   man-cgi.css \
    111  1.1.1.11.2.1   yamt 		   man.h \
    112      1.1.1.10  joerg 		   man_hash.c \
    113      1.1.1.10  joerg 		   man_html.c \
    114      1.1.1.10  joerg 		   man_macro.c \
    115      1.1.1.10  joerg 		   man_term.c \
    116      1.1.1.10  joerg 		   man_validate.c \
    117      1.1.1.10  joerg 		   mandoc.1 \
    118      1.1.1.10  joerg 		   mandoc.3 \
    119      1.1.1.10  joerg 		   mandoc.c \
    120      1.1.1.10  joerg 		   mandoc.h \
    121  1.1.1.11.2.1   yamt 		   mandoc_char.7 \
    122      1.1.1.11  joerg 		   mandocdb.8 \
    123      1.1.1.11  joerg 		   mandocdb.c \
    124  1.1.1.11.2.1   yamt 		   mandocdb.h \
    125  1.1.1.11.2.1   yamt 		   manpath.c \
    126  1.1.1.11.2.1   yamt 		   manpath.h \
    127      1.1.1.10  joerg 		   mdoc.7 \
    128      1.1.1.10  joerg 		   mdoc.c \
    129  1.1.1.11.2.1   yamt 		   mdoc.h \
    130      1.1.1.10  joerg 		   mdoc_argv.c \
    131      1.1.1.10  joerg 		   mdoc_hash.c \
    132      1.1.1.10  joerg 		   mdoc_html.c \
    133      1.1.1.10  joerg 		   mdoc_macro.c \
    134      1.1.1.11  joerg 		   mdoc_man.c \
    135      1.1.1.10  joerg 		   mdoc_term.c \
    136      1.1.1.10  joerg 		   mdoc_validate.c \
    137      1.1.1.10  joerg 		   msec.c \
    138      1.1.1.10  joerg 		   msec.in \
    139      1.1.1.10  joerg 		   out.c \
    140      1.1.1.10  joerg 		   out.h \
    141      1.1.1.11  joerg 		   preconv.1 \
    142      1.1.1.11  joerg 		   preconv.c \
    143      1.1.1.11  joerg 		   predefs.in \
    144      1.1.1.10  joerg 		   read.c \
    145  1.1.1.11.2.1   yamt 		   regress \
    146      1.1.1.10  joerg 		   roff.7 \
    147      1.1.1.10  joerg 		   roff.c \
    148      1.1.1.10  joerg 		   st.c \
    149      1.1.1.10  joerg 		   st.in \
    150      1.1.1.10  joerg 		   style.css \
    151      1.1.1.10  joerg 		   tbl.7 \
    152      1.1.1.10  joerg 		   tbl.c \
    153      1.1.1.10  joerg 		   tbl_data.c \
    154      1.1.1.10  joerg 		   tbl_html.c \
    155      1.1.1.10  joerg 		   tbl_layout.c \
    156      1.1.1.10  joerg 		   tbl_opts.c \
    157      1.1.1.10  joerg 		   tbl_term.c \
    158      1.1.1.10  joerg 		   term.c \
    159      1.1.1.10  joerg 		   term.h \
    160      1.1.1.10  joerg 		   term_ascii.c \
    161      1.1.1.10  joerg 		   term_ps.c \
    162  1.1.1.11.2.1   yamt 		   test-fgetln.c \
    163      1.1.1.11  joerg 		   test-getsubopt.c \
    164      1.1.1.11  joerg 		   test-mmap.c \
    165      1.1.1.10  joerg 		   test-strlcat.c \
    166      1.1.1.10  joerg 		   test-strlcpy.c \
    167      1.1.1.11  joerg 		   test-strptime.c \
    168      1.1.1.10  joerg 		   tree.c \
    169      1.1.1.10  joerg 		   vol.c \
    170  1.1.1.11.2.1   yamt 		   vol.in \
    171  1.1.1.11.2.1   yamt 		   whatis.1
    172      1.1.1.10  joerg 
    173      1.1.1.10  joerg LIBMAN_OBJS	 = man.o \
    174      1.1.1.10  joerg 		   man_hash.o \
    175      1.1.1.10  joerg 		   man_macro.o \
    176      1.1.1.10  joerg 		   man_validate.o
    177      1.1.1.10  joerg LIBMAN_LNS	 = man.ln \
    178      1.1.1.10  joerg 		   man_hash.ln \
    179      1.1.1.10  joerg 		   man_macro.ln \
    180      1.1.1.10  joerg 		   man_validate.ln
    181      1.1.1.10  joerg 
    182      1.1.1.10  joerg LIBMDOC_OBJS	 = arch.o \
    183      1.1.1.10  joerg 		   att.o \
    184      1.1.1.10  joerg 		   lib.o \
    185      1.1.1.10  joerg 		   mdoc.o \
    186      1.1.1.10  joerg 		   mdoc_argv.o \
    187      1.1.1.10  joerg 		   mdoc_hash.o \
    188      1.1.1.10  joerg 		   mdoc_macro.o \
    189      1.1.1.10  joerg 		   mdoc_validate.o \
    190      1.1.1.10  joerg 		   st.o \
    191      1.1.1.10  joerg 		   vol.o
    192      1.1.1.10  joerg LIBMDOC_LNS	 = arch.ln \
    193      1.1.1.10  joerg 		   att.ln \
    194      1.1.1.10  joerg 		   lib.ln \
    195      1.1.1.10  joerg 		   mdoc.ln \
    196      1.1.1.10  joerg 		   mdoc_argv.ln \
    197      1.1.1.10  joerg 		   mdoc_hash.ln \
    198      1.1.1.10  joerg 		   mdoc_macro.ln \
    199      1.1.1.10  joerg 		   mdoc_validate.ln \
    200      1.1.1.10  joerg 		   st.ln \
    201      1.1.1.10  joerg 		   vol.ln
    202      1.1.1.10  joerg 
    203      1.1.1.10  joerg LIBROFF_OBJS	 = eqn.o \
    204      1.1.1.10  joerg 		   roff.o \
    205      1.1.1.10  joerg 		   tbl.o \
    206      1.1.1.10  joerg 		   tbl_data.o \
    207      1.1.1.10  joerg 		   tbl_layout.o \
    208      1.1.1.10  joerg 		   tbl_opts.o
    209      1.1.1.10  joerg LIBROFF_LNS	 = eqn.ln \
    210      1.1.1.10  joerg 		   roff.ln \
    211      1.1.1.10  joerg 		   tbl.ln \
    212      1.1.1.10  joerg 		   tbl_data.ln \
    213      1.1.1.10  joerg 		   tbl_layout.ln \
    214      1.1.1.10  joerg 		   tbl_opts.ln
    215      1.1.1.10  joerg 
    216      1.1.1.10  joerg LIBMANDOC_OBJS	 = $(LIBMAN_OBJS) \
    217      1.1.1.10  joerg 		   $(LIBMDOC_OBJS) \
    218      1.1.1.10  joerg 		   $(LIBROFF_OBJS) \
    219      1.1.1.11  joerg 		   chars.o \
    220      1.1.1.10  joerg 		   mandoc.o \
    221  1.1.1.11.2.1   yamt 		   msec.o \
    222      1.1.1.10  joerg 		   read.o
    223      1.1.1.10  joerg LIBMANDOC_LNS	 = $(LIBMAN_LNS) \
    224      1.1.1.10  joerg 		   $(LIBMDOC_LNS) \
    225      1.1.1.10  joerg 		   $(LIBROFF_LNS) \
    226      1.1.1.11  joerg 		   chars.ln \
    227      1.1.1.10  joerg 		   mandoc.ln \
    228  1.1.1.11.2.1   yamt 		   msec.ln \
    229      1.1.1.10  joerg 		   read.ln
    230      1.1.1.10  joerg 
    231  1.1.1.11.2.1   yamt COMPAT_OBJS	 = compat_fgetln.o \
    232  1.1.1.11.2.1   yamt 		   compat_getsubopt.o \
    233      1.1.1.11  joerg 		   compat_strlcat.o \
    234      1.1.1.11  joerg 		   compat_strlcpy.o
    235  1.1.1.11.2.1   yamt COMPAT_LNS	 = compat_fgetln.ln \
    236  1.1.1.11.2.1   yamt 		   compat_getsubopt.ln \
    237      1.1.1.11  joerg 		   compat_strlcat.ln \
    238      1.1.1.11  joerg 		   compat_strlcpy.ln
    239      1.1.1.11  joerg 
    240      1.1.1.10  joerg arch.o arch.ln: arch.in
    241      1.1.1.10  joerg att.o att.ln: att.in
    242      1.1.1.11  joerg chars.o chars.ln: chars.in
    243      1.1.1.10  joerg lib.o lib.ln: lib.in
    244      1.1.1.10  joerg msec.o msec.ln: msec.in
    245      1.1.1.11  joerg roff.o roff.ln: predefs.in
    246      1.1.1.10  joerg st.o st.ln: st.in
    247      1.1.1.10  joerg vol.o vol.ln: vol.in
    248      1.1.1.10  joerg 
    249      1.1.1.10  joerg $(LIBMAN_OBJS) $(LIBMAN_LNS): libman.h
    250      1.1.1.10  joerg $(LIBMDOC_OBJS) $(LIBMDOC_LNS): libmdoc.h
    251      1.1.1.10  joerg $(LIBROFF_OBJS) $(LIBROFF_LNS): libroff.h
    252      1.1.1.10  joerg $(LIBMANDOC_OBJS) $(LIBMANDOC_LNS): mandoc.h mdoc.h man.h libmandoc.h config.h
    253      1.1.1.10  joerg 
    254      1.1.1.11  joerg $(COMPAT_OBJS) $(COMPAT_LNS): config.h
    255      1.1.1.11  joerg 
    256      1.1.1.11  joerg MANDOC_HTML_OBJS = eqn_html.o \
    257      1.1.1.11  joerg 		   html.o \
    258      1.1.1.10  joerg 		   man_html.o \
    259      1.1.1.10  joerg 		   mdoc_html.o \
    260      1.1.1.10  joerg 		   tbl_html.o
    261      1.1.1.11  joerg MANDOC_HTML_LNS	 = eqn_html.ln \
    262      1.1.1.11  joerg 		   html.ln \
    263      1.1.1.10  joerg 		   man_html.ln \
    264      1.1.1.10  joerg 		   mdoc_html.ln \
    265      1.1.1.10  joerg 		   tbl_html.ln
    266      1.1.1.10  joerg 
    267      1.1.1.11  joerg MANDOC_MAN_OBJS  = mdoc_man.o
    268      1.1.1.11  joerg MANDOC_MAN_LNS   = mdoc_man.ln
    269      1.1.1.11  joerg 
    270      1.1.1.11  joerg MANDOC_TERM_OBJS = eqn_term.o \
    271      1.1.1.11  joerg 		   man_term.o \
    272      1.1.1.10  joerg 		   mdoc_term.o \
    273      1.1.1.10  joerg 		   term.o \
    274      1.1.1.10  joerg 		   term_ascii.o \
    275      1.1.1.10  joerg 		   term_ps.o \
    276      1.1.1.10  joerg 		   tbl_term.o
    277      1.1.1.11  joerg MANDOC_TERM_LNS	 = eqn_term.ln \
    278      1.1.1.11  joerg 		   man_term.ln \
    279      1.1.1.10  joerg 		   mdoc_term.ln \
    280      1.1.1.10  joerg 		   term.ln \
    281      1.1.1.10  joerg 		   term_ascii.ln \
    282      1.1.1.10  joerg 		   term_ps.ln \
    283      1.1.1.10  joerg 		   tbl_term.ln
    284      1.1.1.10  joerg 
    285      1.1.1.10  joerg MANDOC_OBJS	 = $(MANDOC_HTML_OBJS) \
    286      1.1.1.11  joerg 		   $(MANDOC_MAN_OBJS) \
    287      1.1.1.10  joerg 		   $(MANDOC_TERM_OBJS) \
    288      1.1.1.10  joerg 		   main.o \
    289      1.1.1.10  joerg 		   out.o \
    290      1.1.1.10  joerg 		   tree.o
    291      1.1.1.10  joerg MANDOC_LNS	 = $(MANDOC_HTML_LNS) \
    292      1.1.1.11  joerg 		   $(MANDOC_MAN_LNS) \
    293      1.1.1.10  joerg 		   $(MANDOC_TERM_LNS) \
    294      1.1.1.10  joerg 		   main.ln \
    295      1.1.1.10  joerg 		   out.ln \
    296      1.1.1.10  joerg 		   tree.ln
    297      1.1.1.10  joerg 
    298      1.1.1.10  joerg $(MANDOC_HTML_OBJS) $(MANDOC_HTML_LNS): html.h
    299      1.1.1.10  joerg $(MANDOC_TERM_OBJS) $(MANDOC_TERM_LNS): term.h
    300      1.1.1.10  joerg $(MANDOC_OBJS) $(MANDOC_LNS): main.h mandoc.h mdoc.h man.h config.h out.h
    301      1.1.1.10  joerg 
    302  1.1.1.11.2.1   yamt MANDOCDB_OBJS	 = mandocdb.o manpath.o
    303  1.1.1.11.2.1   yamt MANDOCDB_LNS	 = mandocdb.ln manpath.ln
    304      1.1.1.10  joerg 
    305  1.1.1.11.2.1   yamt $(MANDOCDB_OBJS) $(MANDOCDB_LNS): mandocdb.h mandoc.h mdoc.h man.h config.h manpath.h
    306      1.1.1.10  joerg 
    307      1.1.1.11  joerg PRECONV_OBJS	 = preconv.o
    308      1.1.1.11  joerg PRECONV_LNS	 = preconv.ln
    309      1.1.1.11  joerg 
    310      1.1.1.11  joerg $(PRECONV_OBJS) $(PRECONV_LNS): config.h
    311      1.1.1.11  joerg 
    312  1.1.1.11.2.1   yamt APROPOS_OBJS	 = apropos.o apropos_db.o manpath.o
    313  1.1.1.11.2.1   yamt APROPOS_LNS	 = apropos.ln apropos_db.ln manpath.ln
    314      1.1.1.11  joerg 
    315  1.1.1.11.2.1   yamt $(APROPOS_OBJS) $(APROPOS_LNS): config.h mandoc.h apropos_db.h manpath.h mandocdb.h
    316  1.1.1.11.2.1   yamt 
    317  1.1.1.11.2.1   yamt CGI_OBJS	 = $(MANDOC_HTML_OBJS) \
    318  1.1.1.11.2.1   yamt 		   $(MANDOC_MAN_OBJS) \
    319  1.1.1.11.2.1   yamt 		   $(MANDOC_TERM_OBJS) \
    320  1.1.1.11.2.1   yamt 		   cgi.o \
    321  1.1.1.11.2.1   yamt 		   apropos_db.o \
    322  1.1.1.11.2.1   yamt 		   manpath.o \
    323  1.1.1.11.2.1   yamt 		   out.o \
    324  1.1.1.11.2.1   yamt 		   tree.o
    325  1.1.1.11.2.1   yamt 
    326  1.1.1.11.2.1   yamt CGI_LNS	 	 = $(MANDOC_HTML_LNS) \
    327  1.1.1.11.2.1   yamt 		   $(MANDOC_MAN_LNS) \
    328  1.1.1.11.2.1   yamt 		   $(MANDOC_TERM_LNS) \
    329  1.1.1.11.2.1   yamt 		   cgi.ln \
    330  1.1.1.11.2.1   yamt 		   apropos_db.ln \
    331  1.1.1.11.2.1   yamt 		   manpath.ln \
    332  1.1.1.11.2.1   yamt 		   out.ln \
    333  1.1.1.11.2.1   yamt 		   tree.ln
    334  1.1.1.11.2.1   yamt 
    335  1.1.1.11.2.1   yamt $(CGI_OBJS) $(CGI_LNS): main.h mdoc.h man.h out.h config.h mandoc.h apropos_db.h manpath.h mandocdb.h
    336  1.1.1.11.2.1   yamt 
    337  1.1.1.11.2.1   yamt CATMAN_OBJS	 = catman.o manpath.o
    338  1.1.1.11.2.1   yamt CATMAN_LNS 	 = catman.ln manpath.ln
    339  1.1.1.11.2.1   yamt 
    340  1.1.1.11.2.1   yamt $(CATMAN_OBJS) $(CATMAN_LNS): config.h mandoc.h manpath.h mandocdb.h
    341      1.1.1.11  joerg 
    342      1.1.1.11  joerg DEMANDOC_OBJS	 = demandoc.o
    343      1.1.1.11  joerg DEMANDOC_LNS	 = demandoc.ln
    344      1.1.1.11  joerg 
    345      1.1.1.11  joerg $(DEMANDOC_OBJS) $(DEMANDOC_LNS): config.h
    346      1.1.1.11  joerg 
    347      1.1.1.11  joerg INDEX_MANS	 = apropos.1.html \
    348      1.1.1.11  joerg 		   apropos.1.xhtml \
    349      1.1.1.11  joerg 		   apropos.1.ps \
    350      1.1.1.11  joerg 		   apropos.1.pdf \
    351      1.1.1.11  joerg 		   apropos.1.txt \
    352  1.1.1.11.2.1   yamt 		   catman.8.html \
    353  1.1.1.11.2.1   yamt 		   catman.8.xhtml \
    354  1.1.1.11.2.1   yamt 		   catman.8.ps \
    355  1.1.1.11.2.1   yamt 		   catman.8.pdf \
    356  1.1.1.11.2.1   yamt 		   catman.8.txt \
    357      1.1.1.11  joerg 		   demandoc.1.html \
    358      1.1.1.11  joerg 		   demandoc.1.xhtml \
    359      1.1.1.11  joerg 		   demandoc.1.ps \
    360      1.1.1.11  joerg 		   demandoc.1.pdf \
    361      1.1.1.11  joerg 		   demandoc.1.txt \
    362      1.1.1.11  joerg 		   mandoc.1.html \
    363      1.1.1.10  joerg 		   mandoc.1.xhtml \
    364      1.1.1.10  joerg 		   mandoc.1.ps \
    365      1.1.1.10  joerg 		   mandoc.1.pdf \
    366      1.1.1.10  joerg 		   mandoc.1.txt \
    367  1.1.1.11.2.1   yamt 		   whatis.1.html \
    368  1.1.1.11.2.1   yamt 		   whatis.1.xhtml \
    369  1.1.1.11.2.1   yamt 		   whatis.1.ps \
    370  1.1.1.11.2.1   yamt 		   whatis.1.pdf \
    371  1.1.1.11.2.1   yamt 		   whatis.1.txt \
    372      1.1.1.10  joerg 		   mandoc.3.html \
    373      1.1.1.10  joerg 		   mandoc.3.xhtml \
    374      1.1.1.10  joerg 		   mandoc.3.ps \
    375      1.1.1.10  joerg 		   mandoc.3.pdf \
    376      1.1.1.10  joerg 		   mandoc.3.txt \
    377      1.1.1.10  joerg 		   eqn.7.html \
    378      1.1.1.10  joerg 		   eqn.7.xhtml \
    379      1.1.1.10  joerg 		   eqn.7.ps \
    380      1.1.1.10  joerg 		   eqn.7.pdf \
    381      1.1.1.10  joerg 		   eqn.7.txt \
    382      1.1.1.10  joerg 		   man.7.html \
    383      1.1.1.10  joerg 		   man.7.xhtml \
    384      1.1.1.10  joerg 		   man.7.ps \
    385      1.1.1.10  joerg 		   man.7.pdf \
    386      1.1.1.10  joerg 		   man.7.txt \
    387  1.1.1.11.2.1   yamt 		   man.cgi.7.html \
    388  1.1.1.11.2.1   yamt 		   man.cgi.7.xhtml \
    389  1.1.1.11.2.1   yamt 		   man.cgi.7.ps \
    390  1.1.1.11.2.1   yamt 		   man.cgi.7.pdf \
    391  1.1.1.11.2.1   yamt 		   man.cgi.7.txt \
    392      1.1.1.10  joerg 		   mandoc_char.7.html \
    393      1.1.1.10  joerg 		   mandoc_char.7.xhtml \
    394      1.1.1.10  joerg 		   mandoc_char.7.ps \
    395      1.1.1.10  joerg 		   mandoc_char.7.pdf \
    396      1.1.1.10  joerg 		   mandoc_char.7.txt \
    397      1.1.1.10  joerg 		   mdoc.7.html \
    398      1.1.1.10  joerg 		   mdoc.7.xhtml \
    399      1.1.1.10  joerg 		   mdoc.7.ps \
    400      1.1.1.10  joerg 		   mdoc.7.pdf \
    401      1.1.1.10  joerg 		   mdoc.7.txt \
    402      1.1.1.11  joerg 		   preconv.1.html \
    403      1.1.1.11  joerg 		   preconv.1.xhtml \
    404      1.1.1.11  joerg 		   preconv.1.ps \
    405      1.1.1.11  joerg 		   preconv.1.pdf \
    406      1.1.1.11  joerg 		   preconv.1.txt \
    407      1.1.1.10  joerg 		   roff.7.html \
    408      1.1.1.10  joerg 		   roff.7.xhtml \
    409      1.1.1.10  joerg 		   roff.7.ps \
    410      1.1.1.10  joerg 		   roff.7.pdf \
    411      1.1.1.10  joerg 		   roff.7.txt \
    412      1.1.1.10  joerg 		   tbl.7.html \
    413      1.1.1.10  joerg 		   tbl.7.xhtml \
    414      1.1.1.10  joerg 		   tbl.7.ps \
    415      1.1.1.10  joerg 		   tbl.7.pdf \
    416      1.1.1.11  joerg 		   tbl.7.txt \
    417      1.1.1.11  joerg 		   mandocdb.8.html \
    418      1.1.1.11  joerg 		   mandocdb.8.xhtml \
    419      1.1.1.11  joerg 		   mandocdb.8.ps \
    420      1.1.1.11  joerg 		   mandocdb.8.pdf \
    421      1.1.1.11  joerg 		   mandocdb.8.txt
    422      1.1.1.10  joerg 
    423      1.1.1.10  joerg $(INDEX_MANS): mandoc
    424      1.1.1.10  joerg 
    425      1.1.1.10  joerg INDEX_OBJS	 = $(INDEX_MANS) \
    426      1.1.1.10  joerg 		   man.h.html \
    427      1.1.1.10  joerg 		   mandoc.h.html \
    428      1.1.1.10  joerg 		   mdoc.h.html \
    429      1.1.1.10  joerg 		   mdocml.tar.gz \
    430      1.1.1.10  joerg 		   mdocml.md5
    431           1.1  joerg 
    432      1.1.1.10  joerg www: index.html
    433       1.1.1.4  joerg 
    434  1.1.1.11.2.1   yamt lint: llib-lmandoc.ln llib-lpreconv.ln llib-ldemandoc.ln $(DBLN)
    435           1.1  joerg 
    436           1.1  joerg clean:
    437      1.1.1.10  joerg 	rm -f libmandoc.a $(LIBMANDOC_OBJS)
    438      1.1.1.10  joerg 	rm -f llib-llibmandoc.ln $(LIBMANDOC_LNS)
    439      1.1.1.11  joerg 	rm -f mandocdb $(MANDOCDB_OBJS)
    440      1.1.1.11  joerg 	rm -f llib-lmandocdb.ln $(MANDOCDB_LNS)
    441      1.1.1.11  joerg 	rm -f preconv $(PRECONV_OBJS)
    442      1.1.1.11  joerg 	rm -f llib-lpreconv.ln $(PRECONV_LNS)
    443  1.1.1.11.2.1   yamt 	rm -f apropos whatis $(APROPOS_OBJS)
    444      1.1.1.11  joerg 	rm -f llib-lapropos.ln $(APROPOS_LNS)
    445  1.1.1.11.2.1   yamt 	rm -f man.cgi $(CGI_OBJS)
    446  1.1.1.11.2.1   yamt 	rm -f llib-lman.cgi.ln $(CGI_LNS)
    447  1.1.1.11.2.1   yamt 	rm -f catman $(CATMAN_OBJS)
    448  1.1.1.11.2.1   yamt 	rm -f llib-lcatman.ln $(CATMAN_LNS)
    449      1.1.1.11  joerg 	rm -f demandoc $(DEMANDOC_OBJS)
    450      1.1.1.11  joerg 	rm -f llib-ldemandoc.ln $(DEMANDOC_LNS)
    451      1.1.1.10  joerg 	rm -f mandoc $(MANDOC_OBJS)
    452      1.1.1.10  joerg 	rm -f llib-lmandoc.ln $(MANDOC_LNS)
    453      1.1.1.11  joerg 	rm -f config.h config.log $(COMPAT_OBJS) $(COMPAT_LNS)
    454      1.1.1.11  joerg 	rm -f mdocml.tar.gz mdocml-win32.zip mdocml-win64.zip mdocml-macosx.zip
    455      1.1.1.10  joerg 	rm -f index.html $(INDEX_OBJS)
    456  1.1.1.11.2.1   yamt 	rm -rf test-fgetln.DSYM
    457      1.1.1.11  joerg 	rm -rf test-strlcpy.DSYM
    458      1.1.1.11  joerg 	rm -rf test-strlcat.DSYM 
    459      1.1.1.11  joerg 	rm -rf test-strptime.DSYM 
    460      1.1.1.11  joerg 	rm -rf test-mmap.DSYM 
    461      1.1.1.11  joerg 	rm -rf test-getsubopt.DSYM
    462           1.1  joerg 
    463      1.1.1.10  joerg install: all
    464       1.1.1.4  joerg 	mkdir -p $(DESTDIR)$(BINDIR)
    465       1.1.1.4  joerg 	mkdir -p $(DESTDIR)$(EXAMPLEDIR)
    466      1.1.1.11  joerg 	mkdir -p $(DESTDIR)$(LIBDIR)
    467      1.1.1.11  joerg 	mkdir -p $(DESTDIR)$(INCLUDEDIR)
    468       1.1.1.4  joerg 	mkdir -p $(DESTDIR)$(MANDIR)/man1
    469      1.1.1.10  joerg 	mkdir -p $(DESTDIR)$(MANDIR)/man3
    470       1.1.1.4  joerg 	mkdir -p $(DESTDIR)$(MANDIR)/man7
    471      1.1.1.11  joerg 	mkdir -p $(DESTDIR)$(MANDIR)/man8
    472      1.1.1.11  joerg 	$(INSTALL_PROGRAM) mandoc preconv demandoc $(DESTDIR)$(BINDIR)
    473      1.1.1.10  joerg 	$(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR)
    474      1.1.1.11  joerg 	$(INSTALL_LIB) man.h mdoc.h mandoc.h $(DESTDIR)$(INCLUDEDIR)
    475      1.1.1.11  joerg 	$(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1
    476      1.1.1.10  joerg 	$(INSTALL_MAN) mandoc.3 $(DESTDIR)$(MANDIR)/man3
    477      1.1.1.10  joerg 	$(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7
    478       1.1.1.4  joerg 	$(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR)
    479           1.1  joerg 
    480  1.1.1.11.2.1   yamt installcgi: all
    481  1.1.1.11.2.1   yamt 	mkdir -p $(DESTDIR)$(CGIBINDIR)
    482  1.1.1.11.2.1   yamt 	mkdir -p $(DESTDIR)$(HTDOCDIR)
    483  1.1.1.11.2.1   yamt 	$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR)
    484  1.1.1.11.2.1   yamt 	$(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css
    485  1.1.1.11.2.1   yamt 	$(INSTALL_DATA) man-cgi.css $(DESTDIR)$(HTDOCDIR)
    486  1.1.1.11.2.1   yamt 
    487      1.1.1.10  joerg installwww: www
    488      1.1.1.10  joerg 	mkdir -p $(PREFIX)/snapshots
    489      1.1.1.11  joerg 	mkdir -p $(PREFIX)/binaries
    490      1.1.1.10  joerg 	$(INSTALL_DATA) index.html external.png index.css $(PREFIX)
    491      1.1.1.10  joerg 	$(INSTALL_DATA) $(INDEX_MANS) style.css $(PREFIX)
    492      1.1.1.10  joerg 	$(INSTALL_DATA) mandoc.h.html man.h.html mdoc.h.html $(PREFIX)
    493      1.1.1.10  joerg 	$(INSTALL_DATA) mdocml.tar.gz $(PREFIX)/snapshots
    494      1.1.1.10  joerg 	$(INSTALL_DATA) mdocml.md5 $(PREFIX)/snapshots
    495      1.1.1.10  joerg 	$(INSTALL_DATA) mdocml.tar.gz $(PREFIX)/snapshots/mdocml-$(VERSION).tar.gz
    496      1.1.1.10  joerg 	$(INSTALL_DATA) mdocml.md5 $(PREFIX)/snapshots/mdocml-$(VERSION).md5
    497      1.1.1.10  joerg 
    498      1.1.1.11  joerg libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
    499      1.1.1.11  joerg 	$(AR) rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
    500      1.1.1.10  joerg 
    501      1.1.1.11  joerg llib-llibmandoc.ln: $(COMPAT_LNS) $(LIBMANDOC_LNS)
    502      1.1.1.11  joerg 	$(LINT) $(LINTFLAGS) -Clibmandoc $(COMPAT_LNS) $(LIBMANDOC_LNS)
    503      1.1.1.10  joerg 
    504      1.1.1.10  joerg mandoc: $(MANDOC_OBJS) libmandoc.a
    505      1.1.1.11  joerg 	$(CC) $(LDFLAGS) -o $@ $(MANDOC_OBJS) libmandoc.a
    506      1.1.1.10  joerg 
    507  1.1.1.11.2.1   yamt llib-lmandoc.ln: $(MANDOC_LNS) llib-llibmandoc.ln
    508  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS) llib-llibmandoc.ln
    509      1.1.1.10  joerg 
    510      1.1.1.11  joerg mandocdb: $(MANDOCDB_OBJS) libmandoc.a
    511      1.1.1.11  joerg 	$(CC) $(LDFLAGS) -o $@ $(MANDOCDB_OBJS) libmandoc.a $(DBLIB)
    512      1.1.1.11  joerg 
    513  1.1.1.11.2.1   yamt llib-lmandocdb.ln: $(MANDOCDB_LNS) llib-llibmandoc.ln
    514  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Cmandocdb $(MANDOCDB_LNS) llib-llibmandoc.ln
    515      1.1.1.11  joerg 
    516      1.1.1.11  joerg preconv: $(PRECONV_OBJS)
    517      1.1.1.11  joerg 	$(CC) $(LDFLAGS) -o $@ $(PRECONV_OBJS)
    518      1.1.1.11  joerg 
    519  1.1.1.11.2.1   yamt llib-lpreconv.ln: $(PRECONV_LNS) llib-llibmandoc.ln
    520  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Cpreconv $(PRECONV_LNS) llib-llibmandoc.ln
    521  1.1.1.11.2.1   yamt 
    522  1.1.1.11.2.1   yamt whatis: apropos
    523  1.1.1.11.2.1   yamt 	cp -f apropos whatis
    524      1.1.1.11  joerg 
    525      1.1.1.11  joerg apropos: $(APROPOS_OBJS) libmandoc.a
    526      1.1.1.11  joerg 	$(CC) $(LDFLAGS) -o $@ $(APROPOS_OBJS) libmandoc.a $(DBLIB)
    527      1.1.1.11  joerg 
    528  1.1.1.11.2.1   yamt llib-lapropos.ln: $(APROPOS_LNS) llib-llibmandoc.ln
    529  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Capropos $(APROPOS_LNS) llib-llibmandoc.ln
    530  1.1.1.11.2.1   yamt 
    531  1.1.1.11.2.1   yamt catman: $(CATMAN_OBJS) libmandoc.a
    532  1.1.1.11.2.1   yamt 	$(CC) $(LDFLAGS) -o $@ $(CATMAN_OBJS) libmandoc.a $(DBLIB)
    533  1.1.1.11.2.1   yamt 
    534  1.1.1.11.2.1   yamt llib-lcatman.ln: $(CATMAN_LNS) llib-llibmandoc.ln
    535  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Ccatman $(CATMAN_LNS) llib-llibmandoc.ln
    536  1.1.1.11.2.1   yamt 
    537  1.1.1.11.2.1   yamt man.cgi: $(CGI_OBJS) libmandoc.a
    538  1.1.1.11.2.1   yamt 	$(CC) $(LDFLAGS) $(STATIC) -o $@ $(CGI_OBJS) libmandoc.a $(DBLIB)
    539  1.1.1.11.2.1   yamt 
    540  1.1.1.11.2.1   yamt llib-lman.cgi.ln: $(CGI_LNS) llib-llibmandoc.ln
    541  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Cman.cgi $(CGI_LNS) llib-llibmandoc.ln
    542      1.1.1.11  joerg 
    543      1.1.1.11  joerg demandoc: $(DEMANDOC_OBJS) libmandoc.a
    544      1.1.1.11  joerg 	$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a
    545      1.1.1.11  joerg 
    546  1.1.1.11.2.1   yamt llib-ldemandoc.ln: $(DEMANDOC_LNS) llib-llibmandoc.ln
    547  1.1.1.11.2.1   yamt 	$(LINT) $(LINTFLAGS) -Cdemandoc $(DEMANDOC_LNS) llib-llibmandoc.ln
    548      1.1.1.10  joerg 
    549      1.1.1.10  joerg mdocml.md5: mdocml.tar.gz
    550      1.1.1.10  joerg 	md5 mdocml.tar.gz >$@
    551      1.1.1.10  joerg 
    552      1.1.1.10  joerg mdocml.tar.gz: $(SRCS)
    553      1.1.1.10  joerg 	mkdir -p .dist/mdocml-$(VERSION)/
    554      1.1.1.11  joerg 	$(INSTALL_SOURCE) $(SRCS) .dist/mdocml-$(VERSION)
    555      1.1.1.10  joerg 	( cd .dist/ && tar zcf ../$@ ./ )
    556           1.1  joerg 	rm -rf .dist/
    557           1.1  joerg 
    558      1.1.1.11  joerg mdocml-win32.zip: $(SRCS)
    559      1.1.1.11  joerg 	mkdir -p .win32/mdocml-$(VERSION)/
    560      1.1.1.11  joerg 	$(INSTALL_SOURCE) $(SRCS) .win32
    561      1.1.1.11  joerg 	cp .win32/Makefile .win32/Makefile.old
    562      1.1.1.11  joerg 	egrep -v -e DUSE_WCHAR -e ^DBBIN .win32/Makefile.old >.win32/Makefile
    563      1.1.1.11  joerg 	( cd .win32; \
    564      1.1.1.11  joerg 		CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar CFLAGS='-DOSNAME=\"Windows\"' make; \
    565      1.1.1.11  joerg 		make install PREFIX=mdocml-$(VERSION) ; \
    566      1.1.1.11  joerg 		zip -r ../$@ mdocml-$(VERSION) )
    567      1.1.1.11  joerg 	rm -rf .win32
    568      1.1.1.11  joerg 
    569      1.1.1.11  joerg mdocml-win64.zip: $(SRCS)
    570      1.1.1.11  joerg 	mkdir -p .win64/mdocml-$(VERSION)/
    571      1.1.1.11  joerg 	$(INSTALL_SOURCE) $(SRCS) .win64
    572      1.1.1.11  joerg 	cp .win64/Makefile .win64/Makefile.old
    573      1.1.1.11  joerg 	egrep -v -e DUSE_WCHAR -e ^DBBIN .win64/Makefile.old >.win64/Makefile
    574      1.1.1.11  joerg 	( cd .win64; \
    575      1.1.1.11  joerg 		CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar CFLAGS='-DOSNAME=\"Windows\"' make; \
    576      1.1.1.11  joerg 		make install PREFIX=mdocml-$(VERSION) ; \
    577      1.1.1.11  joerg 		zip -r ../$@ mdocml-$(VERSION) )
    578      1.1.1.11  joerg 	rm -rf .win64
    579      1.1.1.11  joerg 
    580      1.1.1.11  joerg mdocml-macosx.zip: $(SRCS)
    581      1.1.1.11  joerg 	mkdir -p .macosx/mdocml-$(VERSION)/
    582      1.1.1.11  joerg 	$(INSTALL_SOURCE) $(SRCS) .macosx
    583      1.1.1.11  joerg 	( cd .macosx; \
    584      1.1.1.11  joerg 		CFLAGS="-arch i386 -arch x86_64 -arch ppc" LDFLAGS="-arch i386 -arch x86_64 -arch ppc" make; \
    585      1.1.1.11  joerg 		make install PREFIX=mdocml-$(VERSION) ; \
    586      1.1.1.11  joerg 		zip -r ../$@ mdocml-$(VERSION) )
    587      1.1.1.11  joerg 	rm -rf .macosx
    588      1.1.1.11  joerg 
    589      1.1.1.10  joerg index.html: $(INDEX_OBJS)
    590       1.1.1.4  joerg 
    591      1.1.1.10  joerg config.h: config.h.pre config.h.post
    592      1.1.1.10  joerg 	rm -f config.log
    593      1.1.1.10  joerg 	( cat config.h.pre; \
    594      1.1.1.10  joerg 	  echo; \
    595  1.1.1.11.2.1   yamt 	  if $(CC) $(CFLAGS) -Werror -o test-fgetln test-fgetln.c >> config.log 2>&1; then \
    596  1.1.1.11.2.1   yamt 		echo '#define HAVE_FGETLN'; \
    597  1.1.1.11.2.1   yamt 		rm test-fgetln; \
    598  1.1.1.11.2.1   yamt 	  fi; \
    599      1.1.1.11  joerg 	  if $(CC) $(CFLAGS) -Werror -o test-strptime test-strptime.c >> config.log 2>&1; then \
    600      1.1.1.11  joerg 		echo '#define HAVE_STRPTIME'; \
    601      1.1.1.11  joerg 		rm test-strptime; \
    602      1.1.1.11  joerg 	  fi; \
    603      1.1.1.11  joerg 	  if $(CC) $(CFLAGS) -Werror -o test-getsubopt test-getsubopt.c >> config.log 2>&1; then \
    604      1.1.1.11  joerg 		echo '#define HAVE_GETSUBOPT'; \
    605      1.1.1.11  joerg 		rm test-getsubopt; \
    606      1.1.1.11  joerg 	  fi; \
    607      1.1.1.10  joerg 	  if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \
    608      1.1.1.10  joerg 		echo '#define HAVE_STRLCAT'; \
    609      1.1.1.10  joerg 		rm test-strlcat; \
    610      1.1.1.10  joerg 	  fi; \
    611      1.1.1.11  joerg 	  if $(CC) $(CFLAGS) -Werror -o test-mmap test-mmap.c >> config.log 2>&1; then \
    612      1.1.1.11  joerg 		echo '#define HAVE_MMAP'; \
    613      1.1.1.11  joerg 		rm test-mmap; \
    614      1.1.1.11  joerg 	  fi; \
    615      1.1.1.10  joerg 	  if $(CC) $(CFLAGS) -Werror -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \
    616      1.1.1.10  joerg 		echo '#define HAVE_STRLCPY'; \
    617      1.1.1.10  joerg 		rm test-strlcpy; \
    618      1.1.1.10  joerg 	  fi; \
    619      1.1.1.10  joerg 	  echo; \
    620      1.1.1.10  joerg 	  cat config.h.post \
    621      1.1.1.10  joerg 	) > $@
    622           1.1  joerg 
    623      1.1.1.10  joerg .h.h.html:
    624      1.1.1.10  joerg 	highlight -I $< >$@
    625           1.1  joerg 
    626      1.1.1.11  joerg .1.1.txt .3.3.txt .7.7.txt .8.8.txt:
    627      1.1.1.10  joerg 	./mandoc -Tascii -Wall,stop $< | col -b >$@
    628           1.1  joerg 
    629      1.1.1.11  joerg .1.1.html .3.3.html .7.7.html .8.8.html:
    630      1.1.1.10  joerg 	./mandoc -Thtml -Wall,stop -Ostyle=style.css,man=%N.%S.html,includes=%I.html $< >$@
    631           1.1  joerg 
    632      1.1.1.11  joerg .1.1.ps .3.3.ps .7.7.ps .8.8.ps:
    633      1.1.1.10  joerg 	./mandoc -Tps -Wall,stop $< >$@
    634       1.1.1.9  joerg 
    635      1.1.1.11  joerg .1.1.xhtml .3.3.xhtml .7.7.xhtml .8.8.xhtml:
    636      1.1.1.10  joerg 	./mandoc -Txhtml -Wall,stop -Ostyle=style.css,man=%N.%S.xhtml,includes=%I.html $< >$@
    637       1.1.1.8  joerg 
    638      1.1.1.11  joerg .1.1.pdf .3.3.pdf .7.7.pdf .8.8.pdf:
    639      1.1.1.10  joerg 	./mandoc -Tpdf -Wall,stop $< >$@
    640       1.1.1.5  joerg 
    641      1.1.1.10  joerg .sgml.html:
    642      1.1.1.10  joerg 	validate --warn $<
    643      1.1.1.10  joerg 	sed -e "s!@VERSION@!$(VERSION)!" -e "s!@VDATE@!$(VDATE)!" $< >$@
    644