Title: [commits] (bear) [11399] Changes to the install steps to add a new target "distrib" which will be used by
Revision
11399
Author
bear
Date
2006-08-11 11:31:57 -0700 (Fri, 11 Aug 2006)

Log Message

Changes to the install steps to add a new target "distrib" which will be used by
the tinderboxes to create an image for distribution

Modified Paths

Diff

Modified: trunk/chandler/Makefile (11398 => 11399)

--- trunk/chandler/Makefile	2006-08-11 18:17:47 UTC (rev 11398)
+++ trunk/chandler/Makefile	2006-08-11 18:31:57 UTC (rev 11399)
@@ -3,7 +3,7 @@
 # It should *not* be made to depend on external/ or internal/
 
 
-.PHONY: default install clean realclean downloads build-plugins
+.PHONY: default install-core install distrib clean realclean downloads build-plugins
 
 default: install
 
@@ -166,16 +166,44 @@
       --script-dir=$(SETUPTOOLS_BIN) \
       --install-dir=$(SETUPTOOLS_SITE)
 
+#
+# for distribution the egg develop mode has to be turned off
+# and the egg installed in the normal manner
+#
+$(addprefix distrib-, $(BUILD_PLUGINS)):
+	cd $(CHANDLERHOME)/projects/$(subst distrib-,,$@); \
+  $(PLUGIN_PYTHON) setup.py develop -u \
+    --script-dir=$(SETUPTOOLS_BIN) \
+    --install-dir=$(SETUPTOOLS_SITE)
+	cd $(CHANDLERHOME)/projects/$(subst distrib-,,$@); \
+    $(PLUGIN_PYTHON) setup.py install \
+      --install-scripts=$(SETUPTOOLS_BIN) \
+      --install-lib=$(SETUPTOOLS_SITE)
+
 #bdist_egg -d ../../$(CHANDLERARCHIVES)
 
 build-plugins: $(addprefix binaries-, $(BUILD_PLUGINS))
 
+distrib-plugins: $(addprefix distrib-, $(BUILD_PLUGINS))
+
 chandler-locale-data:
 	$(PLUGIN_PYTHON) setup.py develop \
       --script-dir=$(SETUPTOOLS_BIN) \
       --install-dir=$(SETUPTOOLS_SITE)
 
+#
+# for distribution the egg develop mode has to be turned off
+# and the egg installed in the normal manner
+#
+distrib-chandler-locale-data:
+	$(PLUGIN_PYTHON) setup.py develop -u \
+    --script-dir=$(SETUPTOOLS_BIN) \
+    --install-dir=$(SETUPTOOLS_SITE)
+	$(PLUGIN_PYTHON) setup.py install \
+      --install-scripts=$(SETUPTOOLS_BIN) \
+      --install-lib=$(SETUPTOOLS_SITE)
 
+
 $(ARCHIVES):
 	mkdir -p $(CHANDLERARCHIVES)
 	$(CURL) $@ $(URL)/$(notdir $@)
@@ -213,8 +241,12 @@
 manifest_exe:
 endif
 
-install: $(ARCHIVES) $(ARCHIVES_INST) manifest_exe $(SETUPTOOLS_INST) chandler-locale-data build-plugins
+install-core: $(ARCHIVES) $(ARCHIVES_INST) manifest_exe $(SETUPTOOLS_INST)
 
+install: install-core chandler-locale-data build-plugins
+
+distrib: install-core distrib-chandler-locale-data distrib-plugins
+
 download: $(ARCHIVES) $(SETUPTOOLS_EGG)
 
 # to install individual binaries, for example: make chandlerdb




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to