]> granicus.if.org Git - python/commitdiff
Also install the Tools directory on "make installmacsubtree".
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 21 Jan 2002 22:51:55 +0000 (22:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 21 Jan 2002 22:51:55 +0000 (22:51 +0000)
Mac/OSX/Makefile

index d11f703a1809e7e4285cad75e669deae95bd1afb..3f5477b562c1b9db125af996ee397cd94c6f065a 100644 (file)
@@ -83,8 +83,11 @@ LIBSRC=$(PYTHONBUILDDIR)/Mac/Lib
 LIBSUBDIRS=Carbon lib-scriptpackages lib-scriptpackages/CodeWarrior lib-scriptpackages/Explorer \
        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); \
+       @for i in $(LIBDEST) $(TOOLSDEST); \
        do \
                if test ! -d $$i; then \
                        echo "Creating directory $$i"; \
@@ -137,6 +140,42 @@ installmacsubtree:
                        esac; \
                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