Commit 59e7b2d4 59e7b2d4cd24c1a202729612fca35113e419e1e6 by Sergey Poznyakoff

Added @GUILE_INCLUDES@. Changed snarfing rules.

1 parent 604f0683
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 # See file COPYING in the distribution root directory for copying conditions. 3 # See file COPYING in the distribution root directory for copying conditions.
4 4
5 AUTOMAKE_OPTIONS = ../lib/ansi2knr 5 AUTOMAKE_OPTIONS = ../lib/ansi2knr
6 INCLUDES =-I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include 6 INCLUDES =-I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include @GUILE_INCLUDES@
7 7
8 noinst_LIBRARIES=@MU_SCM@ 8 noinst_LIBRARIES=@MU_SCM@
9 EXTRA_LIBRARIES=libmu_scm.a 9 EXTRA_LIBRARIES=libmu_scm.a
...@@ -33,16 +33,19 @@ CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\" ...@@ -33,16 +33,19 @@ CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\"
33 ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \ 33 ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
34 --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/' 34 --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
35 35
36 GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-doc-snarf 36 GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-$(GUILE_SNARF_VERSION)/guile-doc-snarf
37
37 SUFFIXES=.x .doc 38 SUFFIXES=.x .doc
38 39
39 .c.x: 40 .c.x:
40 $(GUILE_DOC_SNARF) $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) \ 41 AWK=$(AWK) \
41 $< > $@ || { rm $@; false; } 42 $(GUILE_DOC_SNARF) -o $@ \
43 $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
42 44
43 .c.doc: 45 .c.doc:
44 $(GUILE_DOC_SNARF) $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) \ 46 AWK=$(AWK) \
45 $< > /dev/null || { rm $@; false; } 47 $(GUILE_DOC_SNARF) -d -o $@ \
48 $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
46 49
47 guile-procedures.txt: $(DOT_DOC_FILES) 50 guile-procedures.txt: $(DOT_DOC_FILES)
48 cat $(DOT_DOC_FILES) > $@ 51 cat $(DOT_DOC_FILES) > $@
......