summaryrefslogtreecommitdiff
path: root/src/couchdb/priv/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/priv/Makefile.am')
-rw-r--r--src/couchdb/priv/Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/couchdb/priv/Makefile.am b/src/couchdb/priv/Makefile.am
index 4a32c0a2..130da9f4 100644
--- a/src/couchdb/priv/Makefile.am
+++ b/src/couchdb/priv/Makefile.am
@@ -41,6 +41,7 @@ couch_icu_driver_la_LDFLAGS += -no-undefined
endif
COUCHJS_SRCS = \
+ couch_js/help.h \
couch_js/http.c \
couch_js/http.h \
couch_js/main.c \
@@ -58,6 +59,19 @@ couchjs_LDADD = $(CURL_LDFLAGS) @JSLIB@
couchpriv_DATA = stat_descriptions.cfg
couchpriv_PROGRAMS = couchspawnkillable
+if HELP2MAN
+dist_man1_MANS = couchjs.1
+endif
+
+HELP2MAN_OPTION=--no-info --help-option="-h" --version-option="-V"
+
+couchjs.1: couchjs
+ touch $@
+ if test -x "$(HELP2MAN_EXECUTABLE)"; then \
+ $(HELP2MAN_EXECUTABLE) $(HELP2MAN_OPTION) \
+ --name="$(package_name) JavaScript interpreter" ./couchjs --output $@; \
+ fi
+
%.cfg: %.cfg.in
cp $< $@