Skip to content

Commit

Permalink
generation of manual pages has been added
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-scola committed Jul 17, 2018
1 parent e608465 commit 12e3f73
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -18,7 +18,7 @@

ACLOCAL_AMFLAGS = -I m4

GRC_SUBDIRS = . src tests
GRC_SUBDIRS = . doc src tests

SUBDIRS = $(GRC_SUBDIRS)
DIST_SUBDIRS = $(GRC_SUBDIRS) include m4
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -58,6 +58,7 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AC_PROG_AWK
AM_MISSING_PROG([HELP2MAN], [help2man])

AX_PROG_JQ
AX_PROG_CAT
Expand Down Expand Up @@ -180,6 +181,7 @@ AX_MSG_BOLD([Writing output files])

AC_CONFIG_FILES([ \
Makefile \
doc/Makefile \
m4/Makefile \
include/Makefile \
src/Makefile \
Expand Down
32 changes: 32 additions & 0 deletions doc/Makefile.am
@@ -0,0 +1,32 @@
############################################################################
# This file is part of Grenache Command Line Interface. #
# #
# Copyright (C) 2017, 2018 Davide Scola <davide@bitfinex.com> #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or #
# implied. See the License for the specific language governing permissions #
# and limitations under the License. #
############################################################################

dist_man1_MANS = \
grenache-get.1 \
grenache-put.1 \
grenache-keygen.1 \
grenache-lookup.1 \
grenache-announce.1

MAINTAINERCLEANFILES = \
$(dist_man1_MANS)

%.1: $(top_srcdir)/src/%.in $(top_srcdir)/doc/Makefile.am
$(HELP2MAN) --no-info --output=$@ --version-string="$(PACKAGE_VERSION)" \
--name="manual page for $(notdir $(basename $<)) ($(PACKAGE_NAME)) $(PACKAGE_VERSION) on $(host_cpu)-$(host_os)" \
"${SHELL} $(basename $<)$(EXEEXT)"

0 comments on commit 12e3f73

Please sign in to comment.