summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-03 10:14:45 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-03 10:14:45 +0000
commit50f74a79efd7af7ee5119bcfc27bdbc410a6d8e9 (patch)
tree7a7c2c655b09649a65c80c9dfdac8070a5cc6a17 /Makefile
parent33c7bf866c059d2de7824023b724ed7c05fb684f (diff)
downloadmandoc-50f74a79efd7af7ee5119bcfc27bdbc410a6d8e9.tar.gz
Have mandoc-db use config.h for strlcat(). Then create the btree
database from a directory, instead of a path. This is because it'll also output an index of files to that same directory. Add documentation to the local variable names, too.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d939a7b4..96c619c9 100644
--- a/Makefile
+++ b/Makefile
@@ -216,7 +216,7 @@ 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
+$(MANDOCDB_OBJS) $(MANDOCDB_LNS): mandoc.h mdoc.h man.h config.h
INDEX_MANS = mandoc.1.html \
mandoc.1.xhtml \
@@ -316,8 +316,8 @@ 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
+mandoc-db: $(MANDOCDB_OBJS) libmandoc.a
+ $(CC) -o $@ $(MANDOCDB_OBJS) libmandoc.a
llib-lmandoc.ln: $(MANDOC_LNS)
$(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS)