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