summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
authorLudovic Courtes <ludo@chbouib.org>2007-06-01 00:51:10 +0200
committerLudovic Courtes <ludo@chbouib.org>2007-06-01 00:51:10 +0200
commitf469cfce51318df3b629d9af210ce4b4e587fac0 (patch)
treeaa6af42cfdc946f6690483bad19d429ddd9096c6 /doc/Makefile.am
parent76b313969e72860092441f54cc9a4f52c8eaba57 (diff)
downloadgnutls-f469cfce51318df3b629d9af210ce4b4e587fac0.tar.gz
Usage "old-fashion" make suffix rules rather than GNU Make patterns.
* doc/Makefile (%.c.texi): Removed. (core.c.texi, extra.c.texi): New targets. * guile/src/Makefile.am: Renamed `FILE.c.x' to `FILE.x'. (SUFFIXES): Removed. (%.c.x): Removed. (.c.x): New target. * guile/src/core.c: Include "core.x" instead of "core.c.x". * guile/src/errors.c: Likewise. * guile/src/extra.c: Likewise.
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am17
1 files changed, 14 insertions, 3 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 500f4a36ce..3072064719 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -128,15 +128,26 @@ GUILE_FOR_BUILD = $(GUILE) -L $(top_srcdir)/guile/modules
SNARF_CPPFLAGS = -I$(top_srcdir)/guile/src -I$(top_builddir)/guile/src
-%.c.texi: $(top_srcdir)/guile/src/%.c
+core.c.texi: $(top_srcdir)/guile/src/core.c
$(GUILE_FOR_BUILD) -l "$(srcdir)/extract-guile-c-doc.scm" \
-e '(apply main (cdr (command-line)))' \
- -- "$^" "$(CPP)" "$(SNARF_CPPFLAGS)" \
+ -- "$^" "$(CPP)" "$(SNARF_CPPFLAGS) $(CPPFLAGS)" \
> "$@"
+extra.c.texi: $(top_srcdir)/guile/src/extra.c
+ $(GUILE_FOR_BUILD) -l "$(srcdir)/extract-guile-c-doc.scm" \
+ -e '(apply main (cdr (command-line)))' \
+ -- "$^" "$(CPP)" "$(SNARF_CPPFLAGS) $(CPPFLAGS)" \
+ > "$@"
+
+
else !HAVE_GUILE
-%.c.texi:
+core.c.texi:
+ echo "(Guile not available, documentation not generated.)" > $@
+
+extra.c.texi:
echo "(Guile not available, documentation not generated.)" > $@
+
endif !HAVE_GUILE