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