From 5ea54eecbc4c8a60e7fb955ef6ade8448a49827b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 7 Jun 2022 00:48:04 +0530 Subject: 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. --- Makefile.am | 11 +++++------ 1 file 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 -- cgit v1.2.3