Commit 7009642f authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

build: use docbook2man to build manpages from git, ship prebuilt manpages

parent 971cb033
......@@ -3,10 +3,12 @@ ACLOCAL_AMFLAGS = -I auto
include_HEADERS = etherbone.h
lib_LTLIBRARIES = libetherbone.la
bin_PROGRAMS = tools/eb-read tools/eb-write tools/eb-put tools/eb-get tools/eb-snoop tools/eb-ls tools/eb-find tools/eb-tunnel tools/eb-discover
EXTRA_PROGRAMS = test/sizes test/loopback test/etherbonetest
pkg_DATA = etherbone.pc
EXTRA_DIST = etherbone.pc.in glue/version.c.in
bin_PROGRAMS = tools/eb-read tools/eb-write tools/eb-put tools/eb-get tools/eb-snoop tools/eb-ls tools/eb-find tools/eb-tunnel tools/eb-discover
dist_man_MANS = tools/eb-read.1 tools/eb-write.1 tools/eb-put.1 tools/eb-get.1 tools/eb-snoop.1 tools/eb-ls.1 tools/eb-find.1 tools/eb-tunnel.1 tools/eb-discover.1
EXTRA_DIST = tools/eb-read.sgml tools/eb-write.sgml tools/eb-put.sgml tools/eb-get.sgml tools/eb-snoop.sgml tools/eb-ls.sgml tools/eb-find.sgml tools/eb-tunnel.sgml tools/eb-discover.sgml
SOURCES = \
memory/dynamic.c \
......@@ -99,3 +101,15 @@ tools_eb_discover_LDADD =
test_sizes_SOURCES = test/sizes.c
test_loopback_SOURCES = test/loopback.cpp
test_etherbonetest_SOURCES = test/etherbonetest.cpp
# Use manpages in distribution tarball if docbook2man not found
if REBUILD_MAN_PAGES
.sgml.1:
$(DOCBOOK2MAN) -o $(@D) $<
else
if GIT_TREE
.sgml.1:
@echo "***** You must have docbook-utils installed to build from git *****"
@exit 1
endif
endif
......@@ -42,7 +42,9 @@ AC_DEFINE_UNQUOTED([OPERATING_SYSTEM], ["$ac_cv_OPERATING_SYSTEM"], [The operati
AC_DEFINE_UNQUOTED([HOSTNAME], ["${HOSTNAME:-unknown}"], [The hostname of the build system])
AC_DEFINE_UNQUOTED([USERNAME], ["${USERNAME:-${LOGNAME:-${USER:-unknown}}}"], [The username of the person compiling saftlib])
AC_PATH_PROGS([DOCBOOK2MAN], [docbook2manz])
AC_PATH_PROGS([GIT], [git])
AM_CONDITIONAL([REBUILD_MAN_PAGES], [test x$DOCBOOK2MAN != x])
AM_CONDITIONAL([GIT_TREE], [test x$GIT != x -a -e ../.git])
AC_SUBST([ETHERBONE_MAJOR], MAJOR)
......
eb-find
eb-find.1
eb-get
eb-get.1
eb-put
eb-put.1
eb-ls
eb-ls.1
eb-write
eb-write.1
eb-read
eb-read.1
eb-tunnel
eb-tunnel.1
eb-snoop
eb-snoop.1
eb-discover
eb-discover.1
manpage.links
manpage.refs
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment