]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/mdocml/Makefile
Import mandoc snapshot 2017-06-08
[FreeBSD/FreeBSD.git] / contrib / mdocml / Makefile
1 # $Id: Makefile,v 1.512 2017/05/07 17:31:45 schwarze Exp $
2 #
3 # Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4 # Copyright (c) 2011, 2013-2017 Ingo Schwarze <schwarze@openbsd.org>
5 #
6 # Permission to use, copy, modify, and distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
18 VERSION = 1.14.1
19
20 # === LIST OF FILES ====================================================
21
22 TESTSRCS         = test-be32toh.c \
23                    test-cmsg.c \
24                    test-dirent-namlen.c \
25                    test-EFTYPE.c \
26                    test-err.c \
27                    test-fts.c \
28                    test-getline.c \
29                    test-getsubopt.c \
30                    test-isblank.c \
31                    test-mkdtemp.c \
32                    test-nanosleep.c \
33                    test-ntohl.c \
34                    test-O_DIRECTORY.c \
35                    test-ohash.c \
36                    test-PATH_MAX.c \
37                    test-pledge.c \
38                    test-progname.c \
39                    test-recvmsg.c \
40                    test-reallocarray.c \
41                    test-rewb-bsd.c \
42                    test-rewb-sysv.c \
43                    test-sandbox_init.c \
44                    test-strcasestr.c \
45                    test-stringlist.c \
46                    test-strlcat.c \
47                    test-strlcpy.c \
48                    test-strptime.c \
49                    test-strsep.c \
50                    test-strtonum.c \
51                    test-vasprintf.c \
52                    test-wchar.c
53
54 SRCS             = att.c \
55                    catman.c \
56                    cgi.c \
57                    chars.c \
58                    compat_err.c \
59                    compat_fts.c \
60                    compat_getline.c \
61                    compat_getsubopt.c \
62                    compat_isblank.c \
63                    compat_mkdtemp.c \
64                    compat_ohash.c \
65                    compat_progname.c \
66                    compat_reallocarray.c \
67                    compat_strcasestr.c \
68                    compat_stringlist.c \
69                    compat_strlcat.c \
70                    compat_strlcpy.c \
71                    compat_strsep.c \
72                    compat_strtonum.c \
73                    compat_vasprintf.c \
74                    dba.c \
75                    dba_array.c \
76                    dba_read.c \
77                    dba_write.c \
78                    dbm.c \
79                    dbm_map.c \
80                    demandoc.c \
81                    eqn.c \
82                    eqn_html.c \
83                    eqn_term.c \
84                    html.c \
85                    lib.c \
86                    main.c \
87                    man.c \
88                    man_html.c \
89                    man_macro.c \
90                    man_term.c \
91                    man_validate.c \
92                    mandoc.c \
93                    mandoc_aux.c \
94                    mandoc_ohash.c \
95                    mandocd.c \
96                    mandocdb.c \
97                    manpath.c \
98                    mansearch.c \
99                    mdoc.c \
100                    mdoc_argv.c \
101                    mdoc_html.c \
102                    mdoc_macro.c \
103                    mdoc_man.c \
104                    mdoc_markdown.c \
105                    mdoc_state.c \
106                    mdoc_term.c \
107                    mdoc_validate.c \
108                    msec.c \
109                    out.c \
110                    preconv.c \
111                    read.c \
112                    roff.c \
113                    roff_html.c \
114                    roff_term.c \
115                    roff_validate.c \
116                    soelim.c \
117                    st.c \
118                    tag.c \
119                    tbl.c \
120                    tbl_data.c \
121                    tbl_html.c \
122                    tbl_layout.c \
123                    tbl_opts.c \
124                    tbl_term.c \
125                    term.c \
126                    term_ascii.c \
127                    term_ps.c \
128                    term_tab.c \
129                    tree.c
130
131 DISTFILES        = INSTALL \
132                    LICENSE \
133                    Makefile \
134                    Makefile.depend \
135                    NEWS \
136                    TODO \
137                    apropos.1 \
138                    catman.8 \
139                    cgi.h.example \
140                    compat_fts.h \
141                    compat_ohash.h \
142                    compat_stringlist.h \
143                    configure \
144                    configure.local.example \
145                    dba.h \
146                    dba_array.h \
147                    dba_write.h \
148                    dbm.h \
149                    dbm_map.h \
150                    demandoc.1 \
151                    eqn.7 \
152                    gmdiff \
153                    html.h \
154                    lib.in \
155                    libman.h \
156                    libmandoc.h \
157                    libmdoc.h \
158                    libroff.h \
159                    main.h \
160                    makewhatis.8 \
161                    man.1 \
162                    man.7 \
163                    man.cgi.3 \
164                    man.cgi.8 \
165                    man.conf.5 \
166                    man.h \
167                    man.options.1 \
168                    manconf.h \
169                    mandoc.1 \
170                    mandoc.3 \
171                    mandoc.css \
172                    mandoc.db.5 \
173                    mandoc.h \
174                    mandoc_aux.h \
175                    mandoc_char.7 \
176                    mandoc_escape.3 \
177                    mandoc_headers.3 \
178                    mandoc_html.3 \
179                    mandoc_malloc.3 \
180                    mandoc_ohash.h \
181                    mandocd.8 \
182                    mansearch.3 \
183                    mansearch.h \
184                    mchars_alloc.3 \
185                    mdoc.7 \
186                    mdoc.h \
187                    msec.in \
188                    out.h \
189                    predefs.in \
190                    roff.7 \
191                    roff.h \
192                    roff_int.h \
193                    soelim.1 \
194                    st.in \
195                    tag.h \
196                    tbl.3 \
197                    tbl.7 \
198                    term.h \
199                    $(SRCS) \
200                    $(TESTSRCS)
201
202 LIBMAN_OBJS      = man.o \
203                    man_macro.o \
204                    man_validate.o
205
206 LIBMDOC_OBJS     = att.o \
207                    lib.o \
208                    mdoc.o \
209                    mdoc_argv.o \
210                    mdoc_macro.o \
211                    mdoc_state.o \
212                    mdoc_validate.o \
213                    st.o
214
215 LIBROFF_OBJS     = eqn.o \
216                    roff.o \
217                    roff_validate.o \
218                    tbl.o \
219                    tbl_data.o \
220                    tbl_layout.o \
221                    tbl_opts.o
222
223 LIBMANDOC_OBJS   = $(LIBMAN_OBJS) \
224                    $(LIBMDOC_OBJS) \
225                    $(LIBROFF_OBJS) \
226                    chars.o \
227                    mandoc.o \
228                    mandoc_aux.o \
229                    mandoc_ohash.o \
230                    msec.o \
231                    preconv.o \
232                    read.o
233
234 COMPAT_OBJS      = compat_err.o \
235                    compat_fts.o \
236                    compat_getline.o \
237                    compat_getsubopt.o \
238                    compat_isblank.o \
239                    compat_mkdtemp.o \
240                    compat_ohash.o \
241                    compat_progname.o \
242                    compat_reallocarray.o \
243                    compat_strcasestr.o \
244                    compat_strlcat.o \
245                    compat_strlcpy.o \
246                    compat_strsep.o \
247                    compat_strtonum.o \
248                    compat_vasprintf.o
249
250 MANDOC_HTML_OBJS = eqn_html.o \
251                    html.o \
252                    man_html.o \
253                    mdoc_html.o \
254                    roff_html.o \
255                    tbl_html.o
256
257 MANDOC_TERM_OBJS = eqn_term.o \
258                    man_term.o \
259                    mdoc_term.o \
260                    roff_term.o \
261                    term.o \
262                    term_ascii.o \
263                    term_ps.o \
264                    term_tab.o \
265                    tbl_term.o
266
267 DBM_OBJS         = dbm.o \
268                    dbm_map.o \
269                    mansearch.o
270
271 DBA_OBJS         = dba.o \
272                    dba_array.o \
273                    dba_read.o \
274                    dba_write.o \
275                    mandocdb.o
276
277 MAIN_OBJS        = $(MANDOC_HTML_OBJS) \
278                    $(MANDOC_MAN_OBJS) \
279                    $(MANDOC_TERM_OBJS) \
280                    $(DBM_OBJS) \
281                    $(DBA_OBJS) \
282                    main.o \
283                    manpath.o \
284                    mdoc_man.o \
285                    mdoc_markdown.o \
286                    out.o \
287                    tag.o \
288                    tree.o
289
290 CGI_OBJS         = $(MANDOC_HTML_OBJS) \
291                    $(DBM_OBJS) \
292                    cgi.o \
293                    out.o
294
295 MANDOCD_OBJS     = $(MANDOC_HTML_OBJS) \
296                    $(MANDOC_TERM_OBJS) \
297                    mandocd.o \
298                    out.o \
299                    tag.o
300
301 DEMANDOC_OBJS    = demandoc.o
302
303 SOELIM_OBJS      = soelim.o \
304                    compat_err.o \
305                    compat_getline.o \
306                    compat_progname.o \
307                    compat_reallocarray.o \
308                    compat_stringlist.o
309
310 WWW_MANS         = apropos.1.html \
311                    demandoc.1.html \
312                    man.1.html \
313                    mandoc.1.html \
314                    soelim.1.html \
315                    man.cgi.3.html \
316                    mandoc.3.html \
317                    mandoc_escape.3.html \
318                    mandoc_headers.3.html \
319                    mandoc_html.3.html \
320                    mandoc_malloc.3.html \
321                    mansearch.3.html \
322                    mchars_alloc.3.html \
323                    tbl.3.html \
324                    man.conf.5.html \
325                    mandoc.db.5.html \
326                    eqn.7.html \
327                    man.7.html \
328                    mandoc_char.7.html \
329                    mandocd.8.html \
330                    mdoc.7.html \
331                    roff.7.html \
332                    tbl.7.html \
333                    catman.8.html \
334                    makewhatis.8.html \
335                    man.cgi.8.html \
336                    man.h.html \
337                    manconf.h.html \
338                    mandoc.h.html \
339                    mandoc_aux.h.html \
340                    mansearch.h.html \
341                    mdoc.h.html \
342                    roff.h.html
343
344 WWW_OBJS         = mdocml.tar.gz \
345                    mdocml.sha256
346
347 # === USER CONFIGURATION ===============================================
348
349 include Makefile.local
350
351 # === DEPENDENCY HANDLING ==============================================
352
353 all: mandoc demandoc soelim $(BUILD_TARGETS) Makefile.local
354
355 install: base-install $(INSTALL_TARGETS)
356
357 www: $(WWW_OBJS) $(WWW_MANS)
358
359 $(WWW_MANS): mandoc
360
361 .PHONY: base-install cgi-install install www-install
362 .PHONY: clean distclean depend
363
364 include Makefile.depend
365
366 # === TARGETS CONTAINING SHELL COMMANDS ================================
367
368 distclean: clean
369         rm -f Makefile.local config.h config.h.old config.log config.log.old
370
371 clean:
372         rm -f libmandoc.a $(LIBMANDOC_OBJS) $(COMPAT_OBJS)
373         rm -f mandoc $(MAIN_OBJS)
374         rm -f man.cgi $(CGI_OBJS)
375         rm -f mandocd catman $(MANDOCD_OBJS)
376         rm -f demandoc $(DEMANDOC_OBJS)
377         rm -f soelim $(SOELIM_OBJS)
378         rm -f $(WWW_MANS) $(WWW_OBJS)
379         rm -rf *.dSYM
380
381 base-install: mandoc demandoc soelim
382         mkdir -p $(DESTDIR)$(BINDIR)
383         mkdir -p $(DESTDIR)$(SBINDIR)
384         mkdir -p $(DESTDIR)$(MANDIR)/man1
385         mkdir -p $(DESTDIR)$(MANDIR)/man5
386         mkdir -p $(DESTDIR)$(MANDIR)/man7
387         mkdir -p $(DESTDIR)$(MANDIR)/man8
388         $(INSTALL_PROGRAM) mandoc demandoc $(DESTDIR)$(BINDIR)
389         $(INSTALL_PROGRAM) soelim $(DESTDIR)$(BINDIR)/$(BINM_SOELIM)
390         cd $(DESTDIR)$(BINDIR) && $(LN) mandoc $(BINM_MAN)
391         cd $(DESTDIR)$(BINDIR) && $(LN) mandoc $(BINM_APROPOS)
392         cd $(DESTDIR)$(BINDIR) && $(LN) mandoc $(BINM_WHATIS)
393         cd $(DESTDIR)$(SBINDIR) && \
394                 $(LN) ${BIN_FROM_SBIN}/mandoc $(BINM_MAKEWHATIS)
395         $(INSTALL_MAN) mandoc.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1
396         $(INSTALL_MAN) soelim.1 $(DESTDIR)$(MANDIR)/man1/$(BINM_SOELIM).1
397         $(INSTALL_MAN) man.1 $(DESTDIR)$(MANDIR)/man1/$(BINM_MAN).1
398         $(INSTALL_MAN) apropos.1 $(DESTDIR)$(MANDIR)/man1/$(BINM_APROPOS).1
399         cd $(DESTDIR)$(MANDIR)/man1 && $(LN) $(BINM_APROPOS).1 $(BINM_WHATIS).1
400         $(INSTALL_MAN) man.conf.5 $(DESTDIR)$(MANDIR)/man5/$(MANM_MANCONF).5
401         $(INSTALL_MAN) mandoc.db.5 $(DESTDIR)$(MANDIR)/man5
402         $(INSTALL_MAN) man.7 $(DESTDIR)$(MANDIR)/man7/$(MANM_MAN).7
403         $(INSTALL_MAN) mdoc.7 $(DESTDIR)$(MANDIR)/man7/$(MANM_MDOC).7
404         $(INSTALL_MAN) roff.7 $(DESTDIR)$(MANDIR)/man7/$(MANM_ROFF).7
405         $(INSTALL_MAN) eqn.7 $(DESTDIR)$(MANDIR)/man7/$(MANM_EQN).7
406         $(INSTALL_MAN) tbl.7 $(DESTDIR)$(MANDIR)/man7/$(MANM_TBL).7
407         $(INSTALL_MAN) mandoc_char.7 $(DESTDIR)$(MANDIR)/man7
408         $(INSTALL_MAN) makewhatis.8 \
409                 $(DESTDIR)$(MANDIR)/man8/$(BINM_MAKEWHATIS).8
410
411 lib-install: libmandoc.a
412         mkdir -p $(DESTDIR)$(LIBDIR)
413         mkdir -p $(DESTDIR)$(INCLUDEDIR)
414         mkdir -p $(DESTDIR)$(MANDIR)/man3
415         $(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR)
416         $(INSTALL_LIB) man.h mandoc.h mandoc_aux.h mdoc.h roff.h \
417                 $(DESTDIR)$(INCLUDEDIR)
418         $(INSTALL_MAN) mandoc.3 mandoc_escape.3 mandoc_malloc.3 \
419                 mansearch.3 mchars_alloc.3 tbl.3 $(DESTDIR)$(MANDIR)/man3
420
421 cgi-install: man.cgi
422         mkdir -p $(DESTDIR)$(CGIBINDIR)
423         mkdir -p $(DESTDIR)$(HTDOCDIR)
424         $(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR)
425         $(INSTALL_DATA) mandoc.css $(DESTDIR)$(HTDOCDIR)
426
427 catman-install: mandocd catman
428         mkdir -p $(DESTDIR)$(SBINDIR)
429         mkdir -p $(DESTDIR)$(MANDIR)/man8
430         $(INSTALL_PROGRAM) mandocd $(DESTDIR)$(SBINDIR)
431         $(INSTALL_PROGRAM) catman $(DESTDIR)$(SBINDIR)/$(BINM_CATMAN)
432         $(INSTALL_MAN) mandocd.8 $(DESTDIR)$(MANDIR)/man8
433         $(INSTALL_MAN) catman.8 $(DESTDIR)$(MANDIR)/man8/$(BINM_CATMAN).8
434
435 uninstall:
436         rm -f $(DESTDIR)$(BINDIR)/mandoc
437         rm -f $(DESTDIR)$(BINDIR)/demandoc
438         rm -f $(DESTDIR)$(BINDIR)/$(BINM_SOELIM)
439         rm -f $(DESTDIR)$(BINDIR)/$(BINM_MAN)
440         rm -f $(DESTDIR)$(BINDIR)/$(BINM_APROPOS)
441         rm -f $(DESTDIR)$(BINDIR)/$(BINM_WHATIS)
442         rm -f $(DESTDIR)$(SBINDIR)/$(BINM_MAKEWHATIS)
443         rm -f $(DESTDIR)$(MANDIR)/man1/mandoc.1
444         rm -f $(DESTDIR)$(MANDIR)/man1/demandoc.1
445         rm -f $(DESTDIR)$(MANDIR)/man1/$(BINM_SOELIM).1
446         rm -f $(DESTDIR)$(MANDIR)/man1/$(BINM_MAN).1
447         rm -f $(DESTDIR)$(MANDIR)/man1/$(BINM_APROPOS).1
448         rm -f $(DESTDIR)$(MANDIR)/man1/$(BINM_WHATIS).1
449         rm -f $(DESTDIR)$(MANDIR)/man5/$(MANM_MANCONF).5
450         rm -f $(DESTDIR)$(MANDIR)/man5/mandoc.db.5
451         rm -f $(DESTDIR)$(MANDIR)/man7/$(MANM_MAN).7
452         rm -f $(DESTDIR)$(MANDIR)/man7/$(MANM_MDOC).7
453         rm -f $(DESTDIR)$(MANDIR)/man7/$(MANM_ROFF).7
454         rm -f $(DESTDIR)$(MANDIR)/man7/$(MANM_EQN).7
455         rm -f $(DESTDIR)$(MANDIR)/man7/$(MANM_TBL).7
456         rm -f $(DESTDIR)$(MANDIR)/man7/mandoc_char.7
457         rm -f $(DESTDIR)$(MANDIR)/man8/$(BINM_MAKEWHATIS).8
458         rm -f $(DESTDIR)$(CGIBINDIR)/man.cgi
459         rm -f $(DESTDIR)$(HTDOCDIR)/mandoc.css
460         rm -f $(DESTDIR)$(SBINDIR)/mandocd
461         rm -f $(DESTDIR)$(SBINDIR)/$(BINM_CATMAN)
462         rm -f $(DESTDIR)$(MANDIR)/man8/mandocd.8
463         rm -f $(DESTDIR)$(MANDIR)/man8/$(BINM_CATMAN).8
464         rm -f $(DESTDIR)$(LIBDIR)/libmandoc.a
465         rm -f $(DESTDIR)$(MANDIR)/man3/mandoc.3
466         rm -f $(DESTDIR)$(MANDIR)/man3/mandoc_escape.3
467         rm -f $(DESTDIR)$(MANDIR)/man3/mandoc_malloc.3
468         rm -f $(DESTDIR)$(MANDIR)/man3/mansearch.3
469         rm -f $(DESTDIR)$(MANDIR)/man3/mchars_alloc.3
470         rm -f $(DESTDIR)$(MANDIR)/man3/tbl.3
471         rm -f $(DESTDIR)$(INCLUDEDIR)/man.h
472         rm -f $(DESTDIR)$(INCLUDEDIR)/mandoc.h
473         rm -f $(DESTDIR)$(INCLUDEDIR)/mandoc_aux.h
474         rm -f $(DESTDIR)$(INCLUDEDIR)/mdoc.h
475         rm -f $(DESTDIR)$(INCLUDEDIR)/roff.h
476         [ ! -e $(DESTDIR)$(INCLUDEDIR) ] || rmdir $(DESTDIR)$(INCLUDEDIR)
477
478 regress: all
479         cd regress && ./regress.pl
480
481 regress-clean:
482         cd regress && ./regress.pl . clean
483
484 Makefile.local config.h: configure $(TESTSRCS)
485         @echo "$@ is out of date; please run ./configure"
486         @exit 1
487
488 libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
489         ar rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
490
491 mandoc: $(MAIN_OBJS) libmandoc.a
492         $(CC) -o $@ $(LDFLAGS) $(MAIN_OBJS) libmandoc.a $(LDADD)
493
494 man.cgi: $(CGI_OBJS) libmandoc.a
495         $(CC) $(STATIC) -o $@ $(LDFLAGS) $(CGI_OBJS) libmandoc.a $(LDADD)
496
497 mandocd: $(MANDOCD_OBJS) libmandoc.a
498         $(CC) -o $@ $(LDFLAGS) $(MANDOCD_OBJS) libmandoc.a $(LDADD)
499
500 catman: catman.o libmandoc.a
501         $(CC) -o $@ $(LDFLAGS) catman.o libmandoc.a $(LDADD)
502
503 demandoc: $(DEMANDOC_OBJS) libmandoc.a
504         $(CC) -o $@ $(LDFLAGS) $(DEMANDOC_OBJS) libmandoc.a $(LDADD)
505
506 soelim: $(SOELIM_OBJS)
507         $(CC) -o $@ $(LDFLAGS) $(SOELIM_OBJS)
508
509 # --- maintainer targets ---
510
511 www-install: www
512         mkdir -p $(HTDOCDIR)/snapshots
513         $(INSTALL_DATA) $(WWW_MANS) mandoc.css $(HTDOCDIR)
514         $(INSTALL_DATA) $(WWW_OBJS) $(HTDOCDIR)/snapshots
515         $(INSTALL_DATA) mdocml.tar.gz \
516                 $(HTDOCDIR)/snapshots/mdocml-$(VERSION).tar.gz
517         $(INSTALL_DATA) mdocml.sha256 \
518                 $(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256
519
520 depend: config.h
521         mkdep -f Makefile.depend $(CFLAGS) $(SRCS)
522         perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \
523                 s|\\\n||g; s|  +| |g; s| $$||mg; print;' \
524                 Makefile.depend > Makefile.tmp
525         mv Makefile.tmp Makefile.depend
526
527 regress-distclean:
528         @find regress \
529                 -name '.#*' -o \
530                 -name '*.orig' -o \
531                 -name '*.rej' -o \
532                 -name '*.core' \
533                 -exec rm -i {} \;
534
535 regress-distcheck:
536         @find regress ! -type d ! -type f
537         @find regress -type f \
538                 ! -path '*/CVS/*' \
539                 ! -name Makefile \
540                 ! -name Makefile.inc \
541                 ! -name '*.in' \
542                 ! -name '*.out_ascii' \
543                 ! -name '*.out_utf8' \
544                 ! -name '*.out_html' \
545                 ! -name '*.out_lint' \
546                 ! -path regress/regress.pl \
547                 ! -path regress/regress.pl.1
548
549 dist: mdocml.sha256
550
551 mdocml.sha256: mdocml.tar.gz
552         sha256 mdocml.tar.gz > $@
553
554 mdocml.tar.gz: $(DISTFILES)
555         ls regress/*/*/*.mandoc_* && exit 1 || true
556         mkdir -p .dist/mdocml-$(VERSION)/
557         $(INSTALL) -m 0644 $(DISTFILES) .dist/mdocml-$(VERSION)
558         cp -pR regress .dist/mdocml-$(VERSION)
559         find .dist/mdocml-$(VERSION)/regress \
560             -type d -name CVS -print0 | xargs -0 rm -rf
561         chmod 755 .dist/mdocml-$(VERSION)/configure
562         ( cd .dist/ && tar zcf ../$@ mdocml-$(VERSION) )
563         rm -rf .dist/
564
565 # === SUFFIX RULES =====================================================
566
567 .SUFFIXES:       .1       .3       .5       .7       .8       .h
568 .SUFFIXES:       .1.html  .3.html  .5.html  .7.html  .8.html  .h.html
569
570 .h.h.html:
571         highlight -I $< > $@
572
573 .1.1.html .3.3.html .5.5.html .7.7.html .8.8.html: mandoc
574         ./mandoc -Thtml -Wall,stop \
575                 -Ostyle=mandoc.css,man=%N.%S.html,includes=%I.html $< > $@