diff options
-rw-r--r-- | Makefile.am | 11 |
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 |