[GRASS-SVN] r38887 - grass/trunk/swig/python

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 27 16:04:07 EDT 2009


Author: glynn
Date: 2009-08-27 16:04:06 -0400 (Thu, 27 Aug 2009)
New Revision: 38887

Modified:
   grass/trunk/swig/python/Makefile
Log:
Force building of intermediate files


Modified: grass/trunk/swig/python/Makefile
===================================================================
--- grass/trunk/swig/python/Makefile	2009-08-27 17:45:38 UTC (rev 38886)
+++ grass/trunk/swig/python/Makefile	2009-08-27 20:04:06 UTC (rev 38887)
@@ -47,10 +47,13 @@
 
 LIBFILES := $(patsubst %,$(DSTDIR)/_%.so,$(MODULES))
 PYFILES  := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
+LLIBFILES := $(patsubst %,_%.so,$(MODULES))
+WRAPFILES := $(patsubst %,%_wrap.c,$(MODULES))
+LPYFILES := $(patsubst %,%.py,$(MODULES))
 
 default:
 	$(MAKE) $(DSTDIR)
-	$(MAKE) $(LIBFILES) $(PYFILES)
+	$(MAKE) $(LLIBFILES) $(WRAPFILES) $(LPYFILES) $(LIBFILES) $(PYFILES)
 
 %_wrap.c %.py: ../include/%.i $(EXTRA_SWIG)
 	$(SWIG) $(SWIGFLAGS) -python -o $*_wrap.c -module $* -shadow $<
@@ -78,6 +81,10 @@
 
 .PHONY: numptr
 
+.SECONDARY: $(patsubst %,%.py,$(MODULES))
+
+.SECONDARY: $(patsubst %,%_wrap.c,$(MODULES))
+
 .SECONDARY: $(patsubst %,$(OBJDIR)/%_wrap.o,$(MODULES))
 
 .SECONDARY: $(patsubst %,_%.so,$(MODULES))



More information about the grass-commit mailing list