@@ -466,7 +466,7 @@ LIBRARY_OBJS= \
466466
467467# Default target
468468all: build_all
469- build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Modules /_testembed python-config
469+ build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks Programs /_testembed python-config
470470
471471# Compile a binary with gcc profile guided optimization.
472472profile-opt:
@@ -539,8 +539,8 @@ clinic: $(BUILDPYTHON)
539539 $(RUNSHARED) $(PYTHON_FOR_BUILD) ./Tools/clinic/clinic.py --make
540540
541541# Build the interpreter
542- $(BUILDPYTHON): Modules /python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
543- $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules /python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
542+ $(BUILDPYTHON): Programs /python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
543+ $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs /python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
544544
545545platform: $(BUILDPYTHON) pybuilddir.txt
546546 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform
@@ -665,18 +665,18 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist
665665 echo "-----------------------------------------------"; \
666666 fi
667667
668- Modules /_testembed: Modules /_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
669- $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules /_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
668+ Programs /_testembed: Programs /_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
669+ $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs /_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
670670
671671############################################################################
672672# Importlib
673673
674- Modules /_freeze_importlib: Modules /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
675- $(LINKCC) $(PY_LDFLAGS) -o $@ Modules /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
674+ Programs /_freeze_importlib: Programs /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
675+ $(LINKCC) $(PY_LDFLAGS) -o $@ Programs /_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
676676
677- Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Modules /_freeze_importlib.c
678- $(MAKE) Modules /_freeze_importlib
679- ./Modules /_freeze_importlib \
677+ Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs /_freeze_importlib.c
678+ $(MAKE) Programs /_freeze_importlib
679+ ./Programs /_freeze_importlib \
680680 $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
681681
682682
@@ -704,11 +704,11 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
704704 -DVPATH='"$(VPATH)"' \
705705 -o $@ $(srcdir)/Modules/getpath.c
706706
707- Modules /python.o: $(srcdir)/Modules /python.c
708- $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules /python.c
707+ Programs /python.o: $(srcdir)/Programs /python.c
708+ $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs /python.c
709709
710- Modules /_testembed.o: $(srcdir)/Modules /_testembed.c
711- $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Modules /_testembed.c
710+ Programs /_testembed.o: $(srcdir)/Programs /_testembed.c
711+ $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs /_testembed.c
712712
713713Modules/_sre.o: $(srcdir)/Modules/_sre.c $(srcdir)/Modules/sre.h $(srcdir)/Modules/sre_constants.h $(srcdir)/Modules/sre_lib.h
714714
@@ -922,7 +922,7 @@ PYTHON_HEADERS= \
922922 $(PARSER_HEADERS) \
923923 $(AST_H)
924924
925- $(LIBRARY_OBJS) $(MODOBJS) Modules /python.o: $(PYTHON_HEADERS)
925+ $(LIBRARY_OBJS) $(MODOBJS) Programs /python.o: $(PYTHON_HEADERS)
926926
927927
928928######################################################################
@@ -1332,7 +1332,7 @@ libainstall: all python-config
13321332 fi; \
13331333 fi
13341334 $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
1335- $(INSTALL_DATA) Modules /python.o $(DESTDIR)$(LIBPL)/python.o
1335+ $(INSTALL_DATA) Programs /python.o $(DESTDIR)$(LIBPL)/python.o
13361336 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in
13371337 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
13381338 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
@@ -1343,10 +1343,10 @@ libainstall: all python-config
13431343 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
13441344 $(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py
13451345 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-config
1346- @if [ -s Modules /python.exp -a \
1346+ @if [ -s Programs /python.exp -a \
13471347 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
13481348 echo; echo "Installing support files for building shared extension modules on AIX:"; \
1349- $(INSTALL_DATA) Modules /python.exp \
1349+ $(INSTALL_DATA) Programs /python.exp \
13501350 $(DESTDIR)$(LIBPL)/python.exp; \
13511351 echo; echo "$(LIBPL)/python.exp"; \
13521352 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
@@ -1526,7 +1526,7 @@ clean: pycremoval
15261526 find build -name '*.py[co]' -exec rm -f {} ';' || true
15271527 -rm -f pybuilddir.txt
15281528 -rm -f Lib/lib2to3/*Grammar*.pickle
1529- -rm -f Modules /_testembed Modules /_freeze_importlib
1529+ -rm -f Programs /_testembed Programs /_freeze_importlib
15301530
15311531profile-removal:
15321532 find . -name '*.gc??' -exec rm -f {} ';'
@@ -1550,7 +1550,7 @@ distclean: clobber
15501550 done
15511551 -rm -f core Makefile Makefile.pre config.status \
15521552 Modules/Setup Modules/Setup.local Modules/Setup.config \
1553- Modules/ld_so_aix Modules /python.exp Misc/python.pc
1553+ Modules/ld_so_aix Programs /python.exp Misc/python.pc
15541554 -rm -f python*-gdb.py
15551555 find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
15561556 -o -name '[@,#]*' -o -name '*.old' \
0 commit comments