summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-10-06 23:00:54 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-10-06 23:00:54 +0000
commit98b59bff3a4c0e0c7b187940c9fd72c6778046e4 (patch)
treec4fd142ea446207428610b9ccb76af98e91300c6 /Makefile
parent2835b2c808e87f26f06bd8ec3a2c581923777902 (diff)
downloadmandoc-98b59bff3a4c0e0c7b187940c9fd72c6778046e4.tar.gz
Import apropos from mandoc-tools after inlining all source files
(originally including extern.h, state.c, and sort.c). The apropos utility interfaces with the databases of mandocdb to provide semantic searching capabilities. It Works For Me, but will need lots of cleanup in the coming months.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6497bfbc..2db51d45 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,8 @@ INSTALL_MAN = $(INSTALL_DATA)
all: mandoc preconv demandoc
SRCS = Makefile \
+ apropos.1 \
+ apropos.c \
arch.c \
arch.in \
att.c \
@@ -266,12 +268,22 @@ PRECONV_LNS = preconv.ln
$(PRECONV_OBJS) $(PRECONV_LNS): config.h
+APROPOS_OBJS = apropos.o
+APROPOS_LNS = apropos.ln
+
+$(APROPOS_OBJS) $(APROPOS_LNS): config.h mandoc.h
+
DEMANDOC_OBJS = demandoc.o
DEMANDOC_LNS = demandoc.ln
$(DEMANDOC_OBJS) $(DEMANDOC_LNS): config.h
-INDEX_MANS = demandoc.1.html \
+INDEX_MANS = apropos.1.html \
+ apropos.1.xhtml \
+ apropos.1.ps \
+ apropos.1.pdf \
+ apropos.1.txt \
+ demandoc.1.html \
demandoc.1.xhtml \
demandoc.1.ps \
demandoc.1.pdf \
@@ -347,6 +359,8 @@ clean:
rm -f llib-lmandocdb.ln $(MANDOCDB_LNS)
rm -f preconv $(PRECONV_OBJS)
rm -f llib-lpreconv.ln $(PRECONV_LNS)
+ rm -f apropos $(APROPOS_OBJS)
+ rm -f llib-lapropos.ln $(APROPOS_LNS)
rm -f demandoc $(DEMANDOC_OBJS)
rm -f llib-ldemandoc.ln $(DEMANDOC_LNS)
rm -f mandoc $(MANDOC_OBJS)
@@ -412,6 +426,12 @@ preconv: $(PRECONV_OBJS)
llib-lpreconv.ln: $(PRECONV_LNS)
$(LINT) $(LINTFLAGS) -Cpreconv $(PRECONV_LNS)
+apropos: $(APROPOS_OBJS) libmandoc.a
+ $(CC) $(LDFLAGS) -o $@ $(APROPOS_OBJS) libmandoc.a
+
+llib-lapropos.ln: $(APROPOS_LNS)
+ $(LINT) $(LINTFLAGS) -Capropos $(APROPOS_LNS)
+
demandoc: $(DEMANDOC_OBJS) libmandoc.a
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a