summaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-02 15:40:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-02 15:40:40 +0000
commit213c173babbe2d47d3bcf16a00cd23efcf2b6135 (patch)
treea8337e2cd3e7abdb3850ae1c7055160e90afdaa9 /Makefile
parentffaf09416e2a8e94119e92a8bac838337e542d76 (diff)
downloadmandoc-213c173babbe2d47d3bcf16a00cd23efcf2b6135.tar.gz
mandoc-213c173babbe2d47d3bcf16a00cd23efcf2b6135.tar.zst
mandoc-213c173babbe2d47d3bcf16a00cd23efcf2b6135.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
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 >$@