[Patches] Fix main Makefile to create prefix, exec_prefix

Greg Ward gward@mems-exchange.org
Fri, 7 Apr 2000 18:17:33 -0400


This patch fixes the top Python Makefile so it creates $(prefix) or
$(exec_prefix) before attempting to create directories under them.
Handy when you use prefixes like "/usr/local/python-1.5.2" and
"/usr/local/python-1.6a1", which don't exist until you install Python
into them.

diff -c -r1.85 Makefile.in
*** Makefile.in	2000/03/31 15:13:17	1.85
--- Makefile.in	2000/04/07 22:14:10
***************
*** 257,263 ****
  # Install the interpreter with $(VERSION) affixed
  # This goes into $(exec_prefix)
  altbininstall:	python$(EXE)
! 		@for i in $(BINDIR); \
  		do \
  			if test ! -d $$i; then \
  				echo "Creating directory $$i"; \
--- 257,263 ----
  # Install the interpreter with $(VERSION) affixed
  # This goes into $(exec_prefix)
  altbininstall:	python$(EXE)
! 		@for i in $(exec_prefix) $(BINDIR); \
  		do \
  			if test ! -d $$i; then \
  				echo "Creating directory $$i"; \
***************
*** 274,280 ****
  
  # Install the manual page
  maninstall:
! 		@for i in $(MANDIR) $(MANDIR)/man1; \
  		do \
  			if test ! -d $$i; then \
  				echo "Creating directory $$i"; \
--- 274,280 ----
  
  # Install the manual page
  maninstall:
! 		@for i in $(prefix) $(MANDIR) $(MANDIR)/man1; \
  		do \
  			if test ! -d $$i; then \
  				echo "Creating directory $$i"; \
***************
*** 292,298 ****
  LIBSUBDIRS=	lib-old lib-tk test test/output encodings \
  		distutils distutils/command $(MACHDEPS)
  libinstall:	python $(srcdir)/Lib/$(PLATDIR)
! 		@for i in $(SCRIPTDIR) $(LIBDEST); \
  		do \
  			if test ! -d $$i; then \
  				echo "Creating directory $$i"; \
--- 292,298 ----
  LIBSUBDIRS=	lib-old lib-tk test test/output encodings \
  		distutils distutils/command $(MACHDEPS)
  libinstall:	python $(srcdir)/Lib/$(PLATDIR)
! 		@for i in $(prefix) $(SCRIPTDIR) $(LIBDEST); \
  		do \
  			if test ! -d $$i; then \
  				echo "Creating directory $$i"; \


-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange / CNRI                           voice: +1-703-262-5376
Reston, Virginia, USA                            fax: +1-703-262-5367