From d43223f6453b2e3f4e6da504c0f1cf7aa4730466 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Fri, 22 Jun 2012 10:56:37 +0100 Subject: [PATCH] Rebuild openconnect.8 if necessary before openconnect.8.inc Signed-off-by: David Woodhouse --- www/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/Makefile.am b/www/Makefile.am index f7b10d7..f912e67 100644 --- a/www/Makefile.am +++ b/www/Makefile.am @@ -24,7 +24,11 @@ $(START_PAGES): menu2-started.xml $(MAIN_PAGES): menu2.xml manual.html: openconnect.8.inc -openconnect.8.inc: ../openconnect.8 + +$(top_builddir)/openconnect.8: $(top_srcdir)/openconnect.8.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status openconnect.8 + +openconnect.8.inc: $(top_builddir)/openconnect.8 groff -t -K UTF-8 -mandoc -Txhtml $? | sed -e '1,//d' -e '/<\/body>/,$$d' > $@ EXTRA_DIST = $(patsubst %.html,%.xml,$(ALL_PAGES)) $(srcdir)/menu1.xml $(srcdir)/menu2*.xml $(srcdir)/html.py -- 2.7.4