[GRASS-SVN] r33477 - in grass/trunk/swig: . python python/NumPtr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 17 03:17:16 EDT 2008
Author: glynn
Date: 2008-09-17 03:17:15 -0400 (Wed, 17 Sep 2008)
New Revision: 33477
Modified:
grass/trunk/swig/Makefile
grass/trunk/swig/python/Makefile
grass/trunk/swig/python/NumPtr/Makefile
Log:
Make swig/python handle "make clean" correctly
Modified: grass/trunk/swig/Makefile
===================================================================
--- grass/trunk/swig/Makefile 2008-09-17 07:16:00 UTC (rev 33476)
+++ grass/trunk/swig/Makefile 2008-09-17 07:17:15 UTC (rev 33477)
@@ -1,5 +1,7 @@
MODULE_TOPDIR = ..
+include $(MODULE_TOPDIR)/include/Make/Vars.make
+
#compile if PYTHON present:
ifneq ($(USE_PYTHON),)
SUBDIRS += python
Modified: grass/trunk/swig/python/Makefile
===================================================================
--- grass/trunk/swig/python/Makefile 2008-09-17 07:16:00 UTC (rev 33476)
+++ grass/trunk/swig/python/Makefile 2008-09-17 07:17:15 UTC (rev 33477)
@@ -11,11 +11,11 @@
#include $(MODULE_TOPDIR)/include/Make/Dir.make
+EXTRA_CLEAN_FILES = $(LIB_NAME)_wrap.o _$(LIB_NAME).so $(LIB_NAME)_wrap.c $(LIB_NAME).pyc $(LIB_NAME).py
+CLEAN_SUBDIRS = NumPtr
+
default: _$(LIB_NAME).so numptr
-clean:
- -rm -f *.o *.so $(LIB_NAME)_wrap.c $(LIB_NAME).pyc $(LIB_NAME).py
-
$(LIB_NAME)_wrap.c: $(LIB_NAME).i
$(SWIG) $(ARCH_INC) -python -shadow $<
Modified: grass/trunk/swig/python/NumPtr/Makefile
===================================================================
--- grass/trunk/swig/python/NumPtr/Makefile 2008-09-17 07:16:00 UTC (rev 33476)
+++ grass/trunk/swig/python/NumPtr/Makefile 2008-09-17 07:17:15 UTC (rev 33477)
@@ -8,3 +8,4 @@
clean:
-rm -rf build/
+ -rm setup.pyc src/NumPtr_wrap.c src/NumPtr.py
More information about the grass-commit
mailing list