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