]> granicus.if.org Git - python/commitdiff
Issue1704287: "make install" fails unless you do "make" first. Make
authorSean Reifscheider <jafo@tummy.com>
Fri, 21 Sep 2007 06:33:28 +0000 (06:33 +0000)
committerSean Reifscheider <jafo@tummy.com>
Fri, 21 Sep 2007 06:33:28 +0000 (06:33 +0000)
   oldsharedmods and sharedmods in "libinstall".

Makefile.pre.in

index eaefb07c7f8da6e0e702f30b78d6e895a270594c..0972411447caf671633b99147280a3eceeb8fce5 100644 (file)
@@ -334,7 +334,8 @@ LIBRARY_OBJS=       \
 # Rules
 
 # Default target
-all:           $(BUILDPYTHON) oldsharedmods sharedmods
+all:           build_all
+build_all:     $(BUILDPYTHON) oldsharedmods sharedmods
 
 # Build the interpreter
 $(BUILDPYTHON):        Modules/python.o $(LIBRARY) $(LDLIBRARY)
@@ -729,7 +730,7 @@ LIBSUBDIRS= lib-tk site-packages test test/output test/data \
                distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
                setuptools setuptools/command setuptools/tests setuptools.egg-info \
                curses $(MACHDEPS)
-libinstall:    $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
+libinstall:    build_all $(srcdir)/Lib/$(PLATDIR)
        @for i in $(SCRIPTDIR) $(LIBDEST); \
        do \
                if test ! -d $(DESTDIR)$$i; then \
@@ -1090,7 +1091,7 @@ funny:
 Python/thread.o: @THREADHEADERS@
 
 # Declare targets that aren't real files
-.PHONY: all sharedmods oldsharedmods test quicktest memtest
+.PHONY: all build_all sharedmods oldsharedmods test quicktest memtest
 .PHONY: install altinstall oldsharedinstall bininstall altbininstall
 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall
 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure