[Python-checkins] CVS: python/dist/src/Mac/OSX Makefile,1.6,1.7

Jack Jansen jackjansen@users.sourceforge.net
Mon, 21 Jan 2002 14:51:57 -0800


Update of /cvsroot/python/python/dist/src/Mac/OSX
In directory usw-pr-cvs1:/tmp/cvs-serv5637

Modified Files:
	Makefile 
Log Message:
Also install the Tools directory on "make installmacsubtree".


Index: Makefile
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSX/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Makefile	2002/01/18 16:12:27	1.6
--- Makefile	2002/01/21 22:51:55	1.7
***************
*** 84,89 ****
  	lib-scriptpackages/Finder lib-scriptpackages/Netscape lib-scriptpackages/StdSuites \
  	mkcwproject mkcwproject/template mkcwproject/template-carbon mkcwproject/template-ppc
  installmacsubtree:
! 	@for i in $(LIBDEST); \
  	do \
  		if test ! -d $$i; then \
--- 84,92 ----
  	lib-scriptpackages/Finder lib-scriptpackages/Netscape lib-scriptpackages/StdSuites \
  	mkcwproject mkcwproject/template mkcwproject/template-carbon mkcwproject/template-ppc
+ TOOLSDEST=$(INSTALLDIR)/Mac/Tools
+ TOOLSSRC=$(PYTHONBUILDDIR)/Mac/Tools
+ TOOLSSUBDIRS=IDE
  installmacsubtree:
! 	@for i in $(LIBDEST) $(TOOLSDEST); \
  	do \
  		if test ! -d $$i; then \
***************
*** 138,141 ****
--- 141,180 ----
  		done; \
  	done
+ 	@for d in $(TOOLSSUBDIRS); \
+ 	do \
+ 		a=$(TOOLSSRC)/$$d; \
+ 		if test ! -d $$a; then continue; else true; fi; \
+ 		b=$(TOOLSDEST)/$$d; \
+ 		if test ! -d $$b; then \
+ 			echo "Creating directory $$b"; \
+ 			$(INSTALL) -d -m $(DIRMODE) $$b; \
+ 		else	true; \
+ 		fi; \
+ 	done
+ 	@for d in $(TOOLSSUBDIRS); \
+ 	do \
+ 		a=$(TOOLSSRC)/$$d; \
+ 		if test ! -d $$a; then continue; else true; fi; \
+ 		b=$(TOOLSDEST)/$$d; \
+ 		for i in $$a/*; \
+ 		do \
+ 			case $$i in \
+ 			*CVS) ;; \
+ 			*.py[co]) ;; \
+ 			*.orig) ;; \
+ 			*~) ;; \
+ 			*) \
+ 				if test -d $$i; then continue; fi; \
+ 				if test -x $$i; then \
+ 				    echo $(INSTALL_SCRIPT) $$i $$b; \
+ 				    $(INSTALL_SCRIPT) $$i $$b; \
+ 				else \
+ 				    echo $(INSTALL_DATA) $$i $$b; \
+ 				    $(INSTALL_DATA) $$i $$b; \
+ 				fi;; \
+ 			esac; \
+ 		done; \
+ 	done
+ 
  	@echo '** Copy the contents of sample_sitecustomize.py (or similar code) into'
  	@echo '**' $(INSTALLDIR)/lib/python2.2/sitecustomize.py