summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorArun Isaac2022-06-07 00:48:04 +0530
committerArun Isaac2022-06-07 00:51:53 +0530
commit5ea54eecbc4c8a60e7fb955ef6ade8448a49827b (patch)
treee35959870afbea31403fb102b94d7eee86585cc6 /Makefile.am
parent1bcf705a06366b971405426ac93bce24c1bc4af8 (diff)
downloadguile-xapian-5ea54eecbc4c8a60e7fb955ef6ade8448a49827b.tar.gz
guile-xapian-5ea54eecbc4c8a60e7fb955ef6ade8448a49827b.tar.lz
guile-xapian-5ea54eecbc4c8a60e7fb955ef6ade8448a49827b.zip
Makefile: Mark xapian/wrap.scm as built source file.
* Makefile.am (BUILT_SOURCES, CLEANFILES): Add xapian/wrap.scm. (xapian/wrap.scm): Group with target xapian_wrap.cc.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index a96300b..5a327f3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,20 +39,19 @@ SWIG_GEN_1 =
lib_LTLIBRARIES = libguilexapian.la
-BUILT_SOURCES = xapian_wrap.cc
+BUILT_SOURCES = xapian_wrap.cc xapian/wrap.scm
libguilexapian_la_SOURCES = xapian_wrap.cc
libguilexapian_la_CXXFLAGS = $(GUILE_CFLAGS) $(XAPIAN_CFLAGS)
libguilexapian_la_LDFLAGS = $(GUILE_LIBS) $(XAPIAN_LIBS)
-CLEANFILES = xapian.i xapian_wrap.cc
+CLEANFILES = xapian.i xapian_wrap.cc xapian/wrap.scm
xapian.i: xapian.i.in Makefile
sed 's|@libdir[@]|$(libdir)|g' $< > $@
-xapian_wrap.cc: xapian.i xapian-head.i xapian-headers.i
- $(SWIG_GEN)$(SWIG) $(SWIG_FLAGS) -scmstub -o $@ -guile -package xapian -c++ $<
-
-xapian/wrap.scm: xapian_wrap.cc
+xapian_wrap.cc xapian/wrap.scm &: xapian.i xapian-head.i xapian-headers.i
+ $(MKDIR_P) xapian
+ $(SWIG_GEN)$(SWIG) $(SWIG_FLAGS) -scmstub -o xapian_wrap.cc -guile -package xapian -c++ $<
# Guile code