autotools conversion: added autotools support for the 'doc' subdir.
cover autotools conversion: added autotools support for the 'doc' subdir.
From: Giorgio <[email protected]>
This patch adds support to eventually build the nft docs: 'nft.8' and 'nft.pdf' in case the proper documentation tools are found on the system. To build the man page 'nft.8' we look for one the three programs:
'docbook2x-man', 'docbook2man' and 'db2x_docbook2man'; in case one was found it is used to build the man page with the command:
# ${DB2MAN} --xinclude $<
To build the .pdf we search for 'dblatex'.
giorgio (1):
autotools conversion: added autotools support for the 'doc' subdir.
Makefile.am | 5 ++--- configure.ac | 45 ++++++++++++++++++++++----------------------- doc/Makefile.am | 19 +++++++++++++++++++ doc/Makefile.in | 20 -------------------- 4 files changed, 43 insertions(+), 46 deletions(-) create mode 100644 doc/Makefile.am delete mode 100644 doc/Makefile.in
Signature · 1 line
2.1.3
cover autotools conversion: added autotools support for the 'doc' subdir.
From: Giorgio <[email protected]>
To build the man page 'nft.8' we look for the three programs:
'docbook2x-man', 'docbook2man' and 'db2x_docbook2man'; in case one was found it is used to build the man page with the command:
# ${DB2MAN} --xinclude $<
giorgio (1):
autotools conversion: added autotools support for the 'doc' subdir.
Makefile.am | 5 ++--- configure.ac | 45 ++++++++++++++++++++++----------------------- doc/Makefile.am | 19 +++++++++++++++++++ doc/Makefile.in | 20 -------------------- 4 files changed, 43 insertions(+), 46 deletions(-) create mode 100644 doc/Makefile.am delete mode 100644 doc/Makefile.in
Signature · 1 line
2.1.3
PATCH 1/1 autotools conversion: added autotools support for the 'doc' subdir.
In reply to Giorgio Dal MolinFrom: Giorgio <[email protected]>
--- Makefile.am | 5 ++--- configure.ac | 45 ++++++++++++++++++++++----------------------- doc/Makefile.am | 19 +++++++++++++++++++ doc/Makefile.in | 20 -------------------- 4 files changed, 43 insertions(+), 46 deletions(-) create mode 100644 doc/Makefile.am delete mode 100644 doc/Makefile.in
Makefile.am +2 -3
@@ -1,5 +1,4 @@ -include Make_global.am - ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src +SUBDIRS = src \ + doc
configure.ac +22 -23
57 lines not on this page · raw message
doc/Makefile.am new file +19 -0
@@ -0,0 +1,19 @@ +if BUILD_MAN +man_MANS = nft.8 +endif + +if BUILD_PDF +pdf_DATA = nft.pdf +endif + +pdfdir=${docdir}/pdf + +.xml.pdf: + ${AM_V_GEN}dblatex -q -t pdf -o $@ $< + +.xml.8: + ${AM_V_GEN}${DB2MAN} --xinclude $< + +EXTRA_DIST = nft.xml + +CLEANFILES = nft.pdf nft.8 *~
doc/Makefile.in deleted +0 -20
@@ -1,20 +0,0 @@ -mandocs-@CONFIG_MAN@ += doc/nft.8 -pdfdocs-@CONFIG_PDF@ += doc/nft.pdf - -all: $(mandocs-y) $(pdfdocs-y) -clean: - @echo -e " CLEAN\t\tdoc" - $(RM) $(mandocs-y) $(pdfdocs-y) - -install: $(mandocs-y) $(pdfdocs-y) - @echo -e " INSTALL\tdoc" - if test -n "$(mandocs-y)"; then \ - $(MKDIR_P) $(DESTDIR)/${mandir}/man8 ;\ - $(INSTALL) -m 755 -p $(mandocs-y) \ - $(DESTDIR)/${mandir}/man8/ ;\ - fi - if test -n "$(pdfdocs-y)"; then \ - $(MKDIR_P) $(DESTDIR)/${pdfdir} ;\ - $(INSTALL) -m 755 -p $(pdfdocs-y) \ - $(DESTDIR)/${pdfdir}/ ;\ - fi
Signature · 1 line
2.1.3
Pablo Neira Ayuso
maintainerQuoted 1 line · Giorgio Dal Molin
From: Giorgio <[email protected]>
Thanks for finishing the work.
Please, add the description that you included in 0/1, so this remain in the repository and justify why we need to check for three different programs.
Add the 'Signed-off-by' tag to your patches and resubmit. Thanks.