mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
(libpath.h): Use @top_srcdir_absoulte@.
(snarfcppopts): New var. (.c.x): Use $(snarfcppopts). Rework guile-snarf usage. (.c.doc): Use $(snarfcppopts).
This commit is contained in:
parent
9bc6fb0a7d
commit
e9c3d3f96a
1 changed files with 5 additions and 5 deletions
|
@ -164,8 +164,7 @@ libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|||
@echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp
|
||||
@echo '#define SCM_BUILD_INFO { \' >> libpath.tmp
|
||||
@echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp
|
||||
@echo ' { "top_srcdir", "'"`cd @top_srcdir@; pwd`"'" }, \' \
|
||||
>> libpath.tmp
|
||||
@echo ' { "top_srcdir", "top_srcdir_absolute@" }, \' >> libpath.tmp
|
||||
@echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp
|
||||
@echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp
|
||||
@echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp
|
||||
|
@ -192,13 +191,14 @@ libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|||
@mv libpath.tmp libpath.h
|
||||
|
||||
|
||||
snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
||||
|
||||
SUFFIXES = .x .doc
|
||||
.c.x:
|
||||
./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
|
||||
|| { rm $@; false; }
|
||||
./guile-snarf $< $(snarfcppopts)
|
||||
.c.doc:
|
||||
-(test -n "${AWK+set}" || AWK="@AWK@"; ${AWK} -f ./guile-func-name-check $<)
|
||||
(./guile-snarf-docs $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< | \
|
||||
(./guile-snarf-docs $(snarfcppopts) $< | \
|
||||
./guile_filter_doc_snarfage$(EXEEXT) --filter-snarfage) > $@ || { rm $@; false; }
|
||||
|
||||
$(DOT_X_FILES) $(EXTRA_DOT_DOC_FILES): snarf.h guile-snarf.in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue