From 215f5f374762355aa7c42949ff83bd0397788d08 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 2 Apr 2011 15:40:40 +0000 Subject: Add an initial keyword-indexer as an alternative front-end to libmandoc.a. This will be used during BSDCan-2011, paired with a web front-end, as a demonstrandum of semantic annotations (mdoc) versus those of man. This isn't linked to the build in any way but for cleaning created files. This code has been heavily tested under valgrind and is known to work on GNU/Linux (needs -ldb library), all BSDs, and Mac OSX. Please don't repost this, for the time being, as I don't want to spoil the fun for the conference. This utility is still constantly under development (e.g., it will also generate a recno database of filenames and `Nd' output so that paths needn't be hard-coded) but is mature enough to warrant being checked in. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9efac46b..d939a7b4 100644 --- a/Makefile +++ b/Makefile @@ -213,6 +213,11 @@ $(MANDOC_OBJS) $(MANDOC_LNS): main.h mandoc.h mdoc.h man.h config.h out.h compat.o compat.ln: config.h +MANDOCDB_OBJS = mandoc-db.o +MANDOCDB_LNS = mandoc-db.ln + +$(MANDOCDB_OBJS) $(MANDOCDB_LNS): mandoc.h mdoc.h man.h + INDEX_MANS = mandoc.1.html \ mandoc.1.xhtml \ mandoc.1.ps \ @@ -270,6 +275,8 @@ lint: llib-llibmandoc.ln llib-lmandoc.ln clean: rm -f libmandoc.a $(LIBMANDOC_OBJS) rm -f llib-llibmandoc.ln $(LIBMANDOC_LNS) + rm -f mandoc-db $(MANDOCDB_OBJS) + rm -f llib-lmandoc-db.ln $(MANDOCDB_LNS) rm -f mandoc $(MANDOC_OBJS) rm -f llib-lmandoc.ln $(MANDOC_LNS) rm -f config.h config.log compat.o compat.ln @@ -308,9 +315,16 @@ llib-llibmandoc.ln: compat.ln $(LIBMANDOC_LNS) mandoc: $(MANDOC_OBJS) libmandoc.a $(CC) -o $@ $(MANDOC_OBJS) libmandoc.a +# You'll need -ldb for Linux. +mandoc-db: mandoc-db.o libmandoc.a + $(CC) -o $@ mandoc-db.o libmandoc.a + llib-lmandoc.ln: $(MANDOC_LNS) $(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS) +llib-lmandoc-db.ln: $(MANDOCDB_LNS) + $(LINT) $(LINTFLAGS) -Cmandoc-db $(MANDOCDB_LNS) + mdocml.md5: mdocml.tar.gz md5 mdocml.tar.gz >$@ -- cgit