Annotation of mandoc/Makefile, Revision 1.437
1.437 ! schwarze 1: # $Id: Makefile,v 1.436 2014/08/10 23:54:41 schwarze Exp $
1.419 schwarze 2: #
3: # Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4: # Copyright (c) 2011, 2013, 2014 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.
1.259 kristaps 17:
1.433 schwarze 18: VERSION = 1.13.1
1.413 schwarze 19:
20: # === USER SETTINGS ====================================================
21:
1.426 schwarze 22: # --- user settings relevant for all builds ----------------------------
23:
1.259 kristaps 24: # Specify this if you want to hard-code the operating system to appear
25: # in the lower-left hand corner of -mdoc manuals.
1.375 kristaps 26: #
1.419 schwarze 27: # CFLAGS += -DOSNAME="\"OpenBSD 5.5\""
1.259 kristaps 28:
1.341 kristaps 29: # IFF your system supports multi-byte functions (setlocale(), wcwidth(),
30: # putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a
31: # UCS-4 value) should you define USE_WCHAR. If you define it and your
32: # system DOESN'T support this, -Tlocale will produce garbage.
33: # If you don't define it, -Tlocale is a synonym for -Tacsii.
1.375 kristaps 34: #
1.362 kristaps 35: CFLAGS += -DUSE_WCHAR
1.375 kristaps 36:
1.436 schwarze 37: CFLAGS += -g -W -Wall -Wstrict-prototypes
38: CFLAGS += -Wno-unused-parameter -Wwrite-strings
1.319 kristaps 39: PREFIX = /usr/local
40: BINDIR = $(PREFIX)/bin
1.321 kristaps 41: INCLUDEDIR = $(PREFIX)/include/mandoc
42: LIBDIR = $(PREFIX)/lib/mandoc
1.319 kristaps 43: MANDIR = $(PREFIX)/man
44: EXAMPLEDIR = $(PREFIX)/share/examples/mandoc
1.426 schwarze 45:
1.319 kristaps 46: INSTALL = install
1.427 schwarze 47: INSTALL_PROGRAM = $(INSTALL) -m 0555
1.319 kristaps 48: INSTALL_DATA = $(INSTALL) -m 0444
1.427 schwarze 49: INSTALL_LIB = $(INSTALL) -m 0444
1.353 kristaps 50: INSTALL_SOURCE = $(INSTALL) -m 0644
1.319 kristaps 51: INSTALL_MAN = $(INSTALL_DATA)
52:
1.426 schwarze 53: # --- user settings related to database support ------------------------
54:
1.437 ! schwarze 55: # Building apropos(1) and makewhatis(8) requires SQLite3.
! 56: # To avoid that dependency, comment the following line.
1.426 schwarze 57: #
1.428 schwarze 58: BUILD_TARGETS += db-build
59:
60: # The remaining settings in this section
61: # are only relevant if db-build is enabled.
62: # Otherwise, they have no effect either way.
1.423 schwarze 63:
1.426 schwarze 64: # If your system has manpath(1), uncomment this. This is most any
65: # system that's not OpenBSD or NetBSD. If uncommented, apropos(1)
66: # and makewhatis(8) will use manpath(1) to get the MANPATH variable.
67: #
68: #CFLAGS += -DUSE_MANPATH
1.420 schwarze 69:
1.427 schwarze 70: # On some systems, SQLite3 may be installed below /usr/local.
71: # In that case, uncomment the following two lines.
72: #
73: #CFLAGS += -I/usr/local/include
74: #DBLIB += -L/usr/local/lib
75:
1.420 schwarze 76: # OpenBSD has the ohash functions in libutil.
77: # Comment the following line if your system doesn't.
1.426 schwarze 78: #
1.420 schwarze 79: DBLIB += -lutil
1.358 kristaps 80:
1.428 schwarze 81: SBINDIR = $(PREFIX)/sbin
82:
1.426 schwarze 83: # --- user settings related to man.cgi ---------------------------------
84:
85: # To build man.cgi, copy cgi.h.example to cgi.h, edit it,
86: # and enable the following line.
1.428 schwarze 87: # Obviously, this requires that db-build is enabled, too.
1.426 schwarze 88: #
1.428 schwarze 89: #BUILD_TARGETS += cgi-build
90:
91: # The remaining settings in this section
92: # are only relevant if cgi-build is enabled.
93: # Otherwise, they have no effect either way.
1.426 schwarze 94:
95: # If your system does not support static binaries, comment this,
96: # for example on Mac OS X.
97: #
98: STATIC = -static
99:
100: # Linux requires -pthread for statical linking.
101: #
102: #STATIC += -pthread
103:
104: WWWPREFIX = /var/www
105: HTDOCDIR = $(WWWPREFIX)/htdocs
106: CGIBINDIR = $(WWWPREFIX)/cgi-bin
107:
1.413 schwarze 108: # === END OF USER SETTINGS =============================================
109:
1.428 schwarze 110: INSTALL_TARGETS = $(BUILD_TARGETS:-build=-install)
111:
112: BASEBIN = mandoc preconv demandoc
113: DBBIN = apropos makewhatis
114: CGIBIN = man.cgi
115:
1.427 schwarze 116: DBLIB += -lsqlite3
1.413 schwarze 117:
1.407 schwarze 118: TESTSRCS = test-fgetln.c \
119: test-getsubopt.c \
120: test-mmap.c \
121: test-ohash.c \
1.418 schwarze 122: test-reallocarray.c \
1.432 schwarze 123: test-sqlite3_errstr.c \
1.427 schwarze 124: test-strcasestr.c \
1.407 schwarze 125: test-strlcat.c \
126: test-strlcpy.c \
1.427 schwarze 127: test-strptime.c \
128: test-strsep.c
1.407 schwarze 129:
1.429 schwarze 130: SRCS = apropos.c \
1.319 kristaps 131: arch.c \
132: att.c \
1.389 kristaps 133: cgi.c \
1.319 kristaps 134: chars.c \
1.390 kristaps 135: compat_fgetln.c \
1.437 ! schwarze 136: compat_fts.c \
1.362 kristaps 137: compat_getsubopt.c \
1.410 schwarze 138: compat_ohash.c \
1.418 schwarze 139: compat_reallocarray.c \
1.432 schwarze 140: compat_sqlite3_errstr.c \
1.406 schwarze 141: compat_strcasestr.c \
1.362 kristaps 142: compat_strlcat.c \
143: compat_strlcpy.c \
1.406 schwarze 144: compat_strsep.c \
1.369 kristaps 145: demandoc.c \
1.319 kristaps 146: eqn.c \
1.360 kristaps 147: eqn_html.c \
1.359 kristaps 148: eqn_term.c \
1.319 kristaps 149: html.c \
150: lib.c \
151: main.c \
152: man.c \
153: man_hash.c \
154: man_html.c \
155: man_macro.c \
156: man_term.c \
157: man_validate.c \
158: mandoc.c \
1.414 schwarze 159: mandoc_aux.c \
1.355 kristaps 160: mandocdb.c \
1.410 schwarze 161: manpage.c \
1.380 kristaps 162: manpath.c \
1.410 schwarze 163: mansearch.c \
1.411 schwarze 164: mansearch_const.c \
1.319 kristaps 165: mdoc.c \
166: mdoc_argv.c \
167: mdoc_hash.c \
168: mdoc_html.c \
169: mdoc_macro.c \
1.371 schwarze 170: mdoc_man.c \
1.319 kristaps 171: mdoc_term.c \
172: mdoc_validate.c \
173: msec.c \
174: out.c \
1.344 kristaps 175: preconv.c \
1.319 kristaps 176: read.c \
177: roff.c \
178: st.c \
179: tbl.c \
180: tbl_data.c \
181: tbl_html.c \
182: tbl_layout.c \
183: tbl_opts.c \
184: tbl_term.c \
185: term.c \
186: term_ascii.c \
187: term_ps.c \
188: tree.c \
189: vol.c \
1.429 schwarze 190: $(TESTSRCS)
191:
1.433 schwarze 192: DISTFILES = INSTALL \
193: LICENSE \
1.429 schwarze 194: Makefile \
195: Makefile.depend \
196: NEWS \
197: TODO \
198: apropos.1 \
199: arch.in \
200: att.in \
201: cgi.h.example \
202: chars.in \
1.437 ! schwarze 203: compat_fts.h \
1.429 schwarze 204: compat_ohash.h \
205: config.h.post \
206: config.h.pre \
207: configure \
208: demandoc.1 \
209: eqn.7 \
210: example.style.css \
211: gmdiff \
212: html.h \
213: lib.in \
214: libman.h \
215: libmandoc.h \
216: libmdoc.h \
217: libroff.h \
218: main.h \
219: makewhatis.8 \
220: man-cgi.css \
221: man.7 \
222: man.cgi.8 \
223: man.h \
224: mandoc.1 \
225: mandoc.3 \
226: mandoc.db.5 \
227: mandoc.h \
228: mandoc_aux.h \
229: mandoc_char.7 \
1.430 schwarze 230: mandoc_escape.3 \
1.429 schwarze 231: mandoc_html.3 \
1.430 schwarze 232: mandoc_malloc.3 \
1.429 schwarze 233: manpath.h \
234: mansearch.3 \
235: mansearch.h \
1.430 schwarze 236: mchars_alloc.3 \
1.429 schwarze 237: mdoc.7 \
238: mdoc.h \
239: msec.in \
240: out.h \
241: preconv.1 \
242: predefs.in \
243: roff.7 \
244: st.in \
245: style.css \
246: tbl.3 \
247: tbl.7 \
248: term.h \
1.407 schwarze 249: vol.in \
1.429 schwarze 250: $(SRCS)
1.319 kristaps 251:
252: LIBMAN_OBJS = man.o \
253: man_hash.o \
254: man_macro.o \
255: man_validate.o
1.325 kristaps 256:
1.319 kristaps 257: LIBMDOC_OBJS = arch.o \
258: att.o \
259: lib.o \
260: mdoc.o \
261: mdoc_argv.o \
262: mdoc_hash.o \
263: mdoc_macro.o \
264: mdoc_validate.o \
265: st.o \
266: vol.o
1.325 kristaps 267:
1.319 kristaps 268: LIBROFF_OBJS = eqn.o \
269: roff.o \
270: tbl.o \
271: tbl_data.o \
272: tbl_layout.o \
273: tbl_opts.o
1.325 kristaps 274:
1.319 kristaps 275: LIBMANDOC_OBJS = $(LIBMAN_OBJS) \
276: $(LIBMDOC_OBJS) \
277: $(LIBROFF_OBJS) \
1.333 kristaps 278: chars.o \
1.319 kristaps 279: mandoc.o \
1.414 schwarze 280: mandoc_aux.o \
1.385 schwarze 281: msec.o \
1.319 kristaps 282: read.o
1.325 kristaps 283:
1.390 kristaps 284: COMPAT_OBJS = compat_fgetln.o \
1.437 ! schwarze 285: compat_fts.o \
1.390 kristaps 286: compat_getsubopt.o \
1.397 kristaps 287: compat_ohash.o \
1.418 schwarze 288: compat_reallocarray.o \
1.432 schwarze 289: compat_sqlite3_errstr.o \
1.406 schwarze 290: compat_strcasestr.o \
1.362 kristaps 291: compat_strlcat.o \
1.406 schwarze 292: compat_strlcpy.o \
293: compat_strsep.o
1.319 kristaps 294:
1.360 kristaps 295: MANDOC_HTML_OBJS = eqn_html.o \
296: html.o \
1.319 kristaps 297: man_html.o \
298: mdoc_html.o \
299: tbl_html.o
1.325 kristaps 300:
1.371 schwarze 301: MANDOC_MAN_OBJS = mdoc_man.o
302:
1.359 kristaps 303: MANDOC_TERM_OBJS = eqn_term.o \
304: man_term.o \
1.319 kristaps 305: mdoc_term.o \
306: term.o \
307: term_ascii.o \
308: term_ps.o \
309: tbl_term.o
1.325 kristaps 310:
1.319 kristaps 311: MANDOC_OBJS = $(MANDOC_HTML_OBJS) \
1.371 schwarze 312: $(MANDOC_MAN_OBJS) \
1.319 kristaps 313: $(MANDOC_TERM_OBJS) \
314: main.o \
315: out.o \
316: tree.o
317:
1.416 schwarze 318: MAKEWHATIS_OBJS = mandocdb.o mansearch_const.o manpath.o
1.326 kristaps 319:
1.343 kristaps 320: PRECONV_OBJS = preconv.o
1.376 kristaps 321:
1.412 schwarze 322: APROPOS_OBJS = apropos.o mansearch.o mansearch_const.o manpath.o
1.372 kristaps 323:
1.421 schwarze 324: CGI_OBJS = $(MANDOC_HTML_OBJS) \
325: cgi.o \
326: mansearch.o \
327: mansearch_const.o \
328: out.o
329:
1.412 schwarze 330: MANPAGE_OBJS = manpage.o mansearch.o mansearch_const.o manpath.o
1.381 kristaps 331:
1.369 kristaps 332: DEMANDOC_OBJS = demandoc.o
333:
1.413 schwarze 334: WWW_MANS = apropos.1.html \
1.401 schwarze 335: demandoc.1.html \
1.369 kristaps 336: mandoc.1.html \
1.401 schwarze 337: preconv.1.html \
1.319 kristaps 338: mandoc.3.html \
1.430 schwarze 339: mandoc_escape.3.html \
1.427 schwarze 340: mandoc_html.3.html \
1.430 schwarze 341: mandoc_malloc.3.html \
1.415 schwarze 342: mansearch.3.html \
1.430 schwarze 343: mchars_alloc.3.html \
1.401 schwarze 344: tbl.3.html \
1.415 schwarze 345: mandoc.db.5.html \
1.319 kristaps 346: eqn.7.html \
347: man.7.html \
348: mandoc_char.7.html \
349: mdoc.7.html \
350: roff.7.html \
351: tbl.7.html \
1.416 schwarze 352: makewhatis.8.html \
1.422 schwarze 353: man.cgi.8.html \
1.413 schwarze 354: man.h.html \
355: mandoc.h.html \
1.419 schwarze 356: mandoc_aux.h.html \
1.415 schwarze 357: manpath.h.html \
358: mansearch.h.html \
1.413 schwarze 359: mdoc.h.html
1.319 kristaps 360:
1.419 schwarze 361: WWW_OBJS = mdocml.tar.gz \
362: mdocml.sha256
363:
1.429 schwarze 364: # === DEPENDENCY HANDLING ==============================================
365:
366: all: base-build $(BUILD_TARGETS)
367:
368: base-build: $(BASEBIN)
369:
370: db-build: $(DBBIN)
371:
372: cgi-build: $(CGIBIN)
373:
374: install: base-install $(INSTALL_TARGETS)
375:
1.419 schwarze 376: www: $(WWW_OBJS) $(WWW_MANS)
1.319 kristaps 377:
1.431 schwarze 378: include Makefile.depend
1.429 schwarze 379:
1.419 schwarze 380: # === TARGETS CONTAINING SHELL COMMANDS ================================
1.132 kristaps 381:
1.1 kristaps 382: clean:
1.319 kristaps 383: rm -f libmandoc.a $(LIBMANDOC_OBJS)
1.396 kristaps 384: rm -f apropos $(APROPOS_OBJS)
1.416 schwarze 385: rm -f makewhatis $(MAKEWHATIS_OBJS)
1.343 kristaps 386: rm -f preconv $(PRECONV_OBJS)
1.421 schwarze 387: rm -f man.cgi $(CGI_OBJS)
1.396 kristaps 388: rm -f manpage $(MANPAGE_OBJS)
1.369 kristaps 389: rm -f demandoc $(DEMANDOC_OBJS)
1.319 kristaps 390: rm -f mandoc $(MANDOC_OBJS)
1.396 kristaps 391: rm -f config.h config.log $(COMPAT_OBJS)
1.413 schwarze 392: rm -f $(WWW_MANS) $(WWW_OBJS)
1.396 kristaps 393: rm -rf *.dSYM
1.290 kristaps 394:
1.428 schwarze 395: base-install: base-build
1.270 joerg 396: mkdir -p $(DESTDIR)$(BINDIR)
397: mkdir -p $(DESTDIR)$(EXAMPLEDIR)
1.332 kristaps 398: mkdir -p $(DESTDIR)$(LIBDIR)
1.334 kristaps 399: mkdir -p $(DESTDIR)$(INCLUDEDIR)
1.270 joerg 400: mkdir -p $(DESTDIR)$(MANDIR)/man1
1.319 kristaps 401: mkdir -p $(DESTDIR)$(MANDIR)/man3
1.270 joerg 402: mkdir -p $(DESTDIR)$(MANDIR)/man7
1.428 schwarze 403: $(INSTALL_PROGRAM) $(BASEBIN) $(DESTDIR)$(BINDIR)
1.324 kristaps 404: $(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR)
1.428 schwarze 405: $(INSTALL_LIB) man.h mandoc.h mandoc_aux.h mdoc.h \
406: $(DESTDIR)$(INCLUDEDIR)
1.369 kristaps 407: $(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1
1.430 schwarze 408: $(INSTALL_MAN) mandoc.3 mandoc_escape.3 mandoc_malloc.3 \
409: mchars_alloc.3 tbl.3 $(DESTDIR)$(MANDIR)/man3
1.419 schwarze 410: $(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 \
411: $(DESTDIR)$(MANDIR)/man7
1.270 joerg 412: $(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR)
1.387 kristaps 413:
1.428 schwarze 414: db-install: db-build
415: mkdir -p $(DESTDIR)$(BINDIR)
416: mkdir -p $(DESTDIR)$(SBINDIR)
417: mkdir -p $(DESTDIR)$(MANDIR)/man1
418: mkdir -p $(DESTDIR)$(MANDIR)/man3
419: mkdir -p $(DESTDIR)$(MANDIR)/man5
420: mkdir -p $(DESTDIR)$(MANDIR)/man8
421: $(INSTALL_PROGRAM) apropos $(DESTDIR)$(BINDIR)
422: ln -f $(DESTDIR)$(BINDIR)/apropos $(DESTDIR)$(BINDIR)/whatis
423: $(INSTALL_PROGRAM) makewhatis $(DESTDIR)$(SBINDIR)
424: $(INSTALL_MAN) apropos.1 $(DESTDIR)$(MANDIR)/man1
425: ln -f $(DESTDIR)$(MANDIR)/man1/apropos.1 \
426: $(DESTDIR)$(MANDIR)/man1/whatis.1
427: $(INSTALL_MAN) mansearch.3 $(DESTDIR)$(MANDIR)/man3
428: $(INSTALL_MAN) mandoc.db.5 $(DESTDIR)$(MANDIR)/man5
429: $(INSTALL_MAN) makewhatis.8 $(DESTDIR)$(MANDIR)/man8
430:
431: cgi-install: cgi-build
1.387 kristaps 432: mkdir -p $(DESTDIR)$(CGIBINDIR)
433: mkdir -p $(DESTDIR)$(HTDOCDIR)
1.424 schwarze 434: mkdir -p $(DESTDIR)$(WWWPREFIX)/man/mandoc/man1
435: mkdir -p $(DESTDIR)$(WWWPREFIX)/man/mandoc/man8
1.421 schwarze 436: $(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR)
1.387 kristaps 437: $(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css
1.391 kristaps 438: $(INSTALL_DATA) man-cgi.css $(DESTDIR)$(HTDOCDIR)
1.424 schwarze 439: $(INSTALL_MAN) apropos.1 $(DESTDIR)$(WWWPREFIX)/man/mandoc/man1/
440: $(INSTALL_MAN) man.cgi.8 $(DESTDIR)$(WWWPREFIX)/man/mandoc/man8/
1.60 kristaps 441:
1.428 schwarze 442: www-install: www
1.413 schwarze 443: mkdir -p $(DESTDIR)$(HTDOCDIR)/snapshots
444: $(INSTALL_DATA) $(WWW_MANS) style.css $(DESTDIR)$(HTDOCDIR)
445: $(INSTALL_DATA) $(WWW_OBJS) $(DESTDIR)$(HTDOCDIR)/snapshots
446: $(INSTALL_DATA) mdocml.tar.gz \
447: $(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).tar.gz
1.419 schwarze 448: $(INSTALL_DATA) mdocml.sha256 \
449: $(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256
1.319 kristaps 450:
1.431 schwarze 451: depend: config.h
1.429 schwarze 452: mkdep -f Makefile.depend $(CFLAGS) $(SRCS)
453: perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \
454: s|\\\n||g; s| +| |g; print;' Makefile.depend > Makefile.tmp
455: mv Makefile.tmp Makefile.depend
456:
1.362 kristaps 457: libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
458: $(AR) rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
1.319 kristaps 459:
460: mandoc: $(MANDOC_OBJS) libmandoc.a
1.368 kristaps 461: $(CC) $(LDFLAGS) -o $@ $(MANDOC_OBJS) libmandoc.a
1.325 kristaps 462:
1.416 schwarze 463: makewhatis: $(MAKEWHATIS_OBJS) libmandoc.a
464: $(CC) $(LDFLAGS) -o $@ $(MAKEWHATIS_OBJS) libmandoc.a $(DBLIB)
1.326 kristaps 465:
1.343 kristaps 466: preconv: $(PRECONV_OBJS)
1.368 kristaps 467: $(CC) $(LDFLAGS) -o $@ $(PRECONV_OBJS)
1.343 kristaps 468:
1.396 kristaps 469: manpage: $(MANPAGE_OBJS) libmandoc.a
470: $(CC) $(LDFLAGS) -o $@ $(MANPAGE_OBJS) libmandoc.a $(DBLIB)
1.383 kristaps 471:
1.372 kristaps 472: apropos: $(APROPOS_OBJS) libmandoc.a
1.373 kristaps 473: $(CC) $(LDFLAGS) -o $@ $(APROPOS_OBJS) libmandoc.a $(DBLIB)
1.421 schwarze 474:
475: man.cgi: $(CGI_OBJS) libmandoc.a
476: $(CC) $(LDFLAGS) $(STATIC) -o $@ $(CGI_OBJS) libmandoc.a $(DBLIB)
1.372 kristaps 477:
1.369 kristaps 478: demandoc: $(DEMANDOC_OBJS) libmandoc.a
479: $(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a
480:
1.419 schwarze 481: mdocml.sha256: mdocml.tar.gz
482: sha256 mdocml.tar.gz > $@
1.319 kristaps 483:
1.429 schwarze 484: mdocml.tar.gz: $(DISTFILES)
1.319 kristaps 485: mkdir -p .dist/mdocml-$(VERSION)/
1.429 schwarze 486: $(INSTALL_SOURCE) $(DISTFILES) .dist/mdocml-$(VERSION)
1.409 schwarze 487: chmod 755 .dist/mdocml-$(VERSION)/configure
488: ( cd .dist/ && tar zcf ../$@ mdocml-$(VERSION) )
1.60 kristaps 489: rm -rf .dist/
1.362 kristaps 490:
1.407 schwarze 491: config.h: configure config.h.pre config.h.post $(TESTSRCS)
1.319 kristaps 492: rm -f config.log
1.434 schwarze 493: CC="$(CC)" CFLAGS="$(CFLAGS)" DBLIB="$(DBLIB)" \
494: VERSION="$(VERSION)" ./configure
1.60 kristaps 495:
1.431 schwarze 496: .PHONY: base-install cgi-install db-install install www-install
497: .PHONY: clean depend
1.419 schwarze 498: .SUFFIXES: .1 .3 .5 .7 .8 .h
499: .SUFFIXES: .1.html .3.html .5.html .7.html .8.html .h.html
500:
1.319 kristaps 501: .h.h.html:
1.419 schwarze 502: highlight -I $< > $@
1.168 kristaps 503:
1.419 schwarze 504: .1.1.html .3.3.html .5.5.html .7.7.html .8.8.html: mandoc
505: ./mandoc -Thtml -Wall,stop \
506: -Ostyle=style.css,man=%N.%S.html,includes=%I.html $< > $@
CVSweb