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