[gnutls-devel] [PATCH 2/5] Fix build failures on autogen'ed docs
Kevin Cernekee
cernekee at gmail.com
Fri Mar 7 07:35:06 CET 2014
autogen needs to be invoked with $(srcdir)/<FOO>-args.def or else it
will not be able to find the input file if GnuTLS is built out of tree,
e.g.
mkdir build
cd build
../configure
make
Also, add missing targets for %-args.h, to avoid this error:
make[2]: Entering directory `/home/user/gnutls/src'
autogen srptool-args.def
autogen psk-args.def
make[2]: *** No rule to make target `ocsptool-args.h', needed by `all'. Stop.
make[2]: Leaving directory `/home/user/gnutls/src'
make[1]: *** [all-recursive] Error 1
This change uses a '%'-style pattern to avoid duplication of similar
rules. '%' patterns are a GNU-ism but there is precedent in
guile/src/Makefile.am.
Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
src/Makefile.am | 22 ++--------------------
1 file changed, 2 insertions(+), 20 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index a768f57..a14c021 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -213,23 +213,5 @@ libcmd_tpmtool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB) $(LIB_CLOCK_GETTIM
endif # ENABLE_TROUSERS
-danetool-args.c: $(srcdir)/args-std.def $(srcdir)/danetool-args.def
- -$(AUTOGEN) danetool-args.def
-ocsptool-args.c: $(srcdir)/args-std.def $(srcdir)/ocsptool-args.def
- -$(AUTOGEN) ocsptool-args.def
-tpmtool-args.c: $(srcdir)/args-std.def $(srcdir)/tpmtool-args.def
- -$(AUTOGEN) tpmtool-args.def
-p11tool-args.c: $(srcdir)/args-std.def $(srcdir)/p11tool-args.def
- -$(AUTOGEN) p11tool-args.def
-psk-args.c: $(srcdir)/args-std.def $(srcdir)/psk-args.def
- -$(AUTOGEN) psk-args.def
-cli-debug-args.c: $(srcdir)/args-std.def $(srcdir)/cli-debug-args.def
- -$(AUTOGEN) cli-debug-args.def
-cli-args.c: $(srcdir)/args-std.def $(srcdir)/cli-args.def
- -$(AUTOGEN) cli-args.def
-serv-args.c: $(srcdir)/args-std.def $(srcdir)/serv-args.def
- -$(AUTOGEN) serv-args.def
-srptool-args.c: $(srcdir)/args-std.def $(srcdir)/srptool-args.def
- -$(AUTOGEN) srptool-args.def
-certtool-args.c: $(srcdir)/args-std.def $(srcdir)/certtool-args.def
- -$(AUTOGEN) certtool-args.def
+%-args.c %-args.h: $(srcdir)/%-args.def $(srcdir)/args-std.def
+ -$(AUTOGEN) $<
--
1.8.3.2
More information about the Gnutls-devel
mailing list