[GRASS-SVN] r38565 - grass/branches/develbranch_6/include/Make
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 2 05:05:21 EDT 2009
Author: neteler
Date: 2009-08-02 05:05:21 -0400 (Sun, 02 Aug 2009)
New Revision: 38565
Modified:
grass/branches/develbranch_6/include/Make/Dir.make
grass/branches/develbranch_6/include/Make/Rules.make
Log:
recursive install support added
Modified: grass/branches/develbranch_6/include/Make/Dir.make
===================================================================
--- grass/branches/develbranch_6/include/Make/Dir.make 2009-08-02 09:04:40 UTC (rev 38564)
+++ grass/branches/develbranch_6/include/Make/Dir.make 2009-08-02 09:05:21 UTC (rev 38565)
@@ -19,8 +19,15 @@
$(MAKE) -C $$subdir clean; \
done
-.PHONY: subdirs cleansubdirs parsubdirs $(SUBDIRS)
+installsubdirs:
+ @list='$(SUBDIRS)'; \
+ for subdir in $$list; do \
+ echo $$subdir ; \
+ $(MAKE) -C $$subdir install; \
+ done
+.PHONY: subdirs cleansubdirs installsubdirs parsubdirs $(SUBDIRS)
+
parsubdirs: $(SUBDIRS)
$(SUBDIRS):
Modified: grass/branches/develbranch_6/include/Make/Rules.make
===================================================================
--- grass/branches/develbranch_6/include/Make/Rules.make 2009-08-02 09:04:40 UTC (rev 38564)
+++ grass/branches/develbranch_6/include/Make/Rules.make 2009-08-02 09:05:21 UTC (rev 38565)
@@ -77,6 +77,14 @@
done ; \
fi
+# default install rules
+install:
+ -if [ "$(INSTALL_SUBDIRS)" != "" ] ; then \
+ for dir in $(INSTALL_SUBDIRS) ; do \
+ $(MAKE) -C $$dir install ; \
+ done ; \
+ fi
+
# HTML page rules:
include $(MODULE_TOPDIR)/include/Make/Html.make
More information about the grass-commit
mailing list