Skip to content

Commit f40d138

Browse files
committed
Fix out of tree builds by adding $(srcdir)
1 parent c747a0f commit f40d138

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Makefile.pre.in

+20-20
Original file line numberDiff line numberDiff line change
@@ -798,121 +798,121 @@ Python/deepfreeze/importlib._bootstrap.c: $(srcdir)/Lib/importlib/_bootstrap.py
798798
@echo "Deepfreezing Python/deepfreeze/importlib._bootstrap.c from Lib/importlib/_bootstrap.py"
799799
@./$(BOOTSTRAP) \
800800
$(srcdir)/Tools/scripts/deepfreeze.py \
801-
Lib/importlib/_bootstrap.py -m importlib._bootstrap -o Python/deepfreeze/importlib._bootstrap.c
801+
$(srcdir)/Lib/importlib/_bootstrap.py -m importlib._bootstrap -o Python/deepfreeze/importlib._bootstrap.c
802802

803803
Python/deepfreeze/importlib._bootstrap_external.c: $(srcdir)/Lib/importlib/_bootstrap_external.py $(DEEPFREEZE_DEPS)
804804
@echo "Deepfreezing Python/deepfreeze/importlib._bootstrap_external.c from Lib/importlib/_bootstrap_external.py"
805805
@./$(BOOTSTRAP) \
806806
$(srcdir)/Tools/scripts/deepfreeze.py \
807-
Lib/importlib/_bootstrap_external.py -m importlib._bootstrap_external -o Python/deepfreeze/importlib._bootstrap_external.c
807+
$(srcdir)/Lib/importlib/_bootstrap_external.py -m importlib._bootstrap_external -o Python/deepfreeze/importlib._bootstrap_external.c
808808

809809
Python/deepfreeze/zipimport.c: $(srcdir)/Lib/zipimport.py $(DEEPFREEZE_DEPS)
810810
@echo "Deepfreezing Python/deepfreeze/zipimport.c from Lib/zipimport.py"
811811
@./$(BOOTSTRAP) \
812812
$(srcdir)/Tools/scripts/deepfreeze.py \
813-
Lib/zipimport.py -m zipimport -o Python/deepfreeze/zipimport.c
813+
$(srcdir)/Lib/zipimport.py -m zipimport -o Python/deepfreeze/zipimport.c
814814

815815
Python/deepfreeze/abc.c: $(srcdir)/Lib/abc.py $(DEEPFREEZE_DEPS)
816816
@echo "Deepfreezing Python/deepfreeze/abc.c from Lib/abc.py"
817817
@./$(BOOTSTRAP) \
818818
$(srcdir)/Tools/scripts/deepfreeze.py \
819-
Lib/abc.py -m abc -o Python/deepfreeze/abc.c
819+
$(srcdir)/Lib/abc.py -m abc -o Python/deepfreeze/abc.c
820820

821821
Python/deepfreeze/codecs.c: $(srcdir)/Lib/codecs.py $(DEEPFREEZE_DEPS)
822822
@echo "Deepfreezing Python/deepfreeze/codecs.c from Lib/codecs.py"
823823
@./$(BOOTSTRAP) \
824824
$(srcdir)/Tools/scripts/deepfreeze.py \
825-
Lib/codecs.py -m codecs -o Python/deepfreeze/codecs.c
825+
$(srcdir)/Lib/codecs.py -m codecs -o Python/deepfreeze/codecs.c
826826

827827
Python/deepfreeze/io.c: $(srcdir)/Lib/io.py $(DEEPFREEZE_DEPS)
828828
@echo "Deepfreezing Python/deepfreeze/io.c from Lib/io.py"
829829
@./$(BOOTSTRAP) \
830830
$(srcdir)/Tools/scripts/deepfreeze.py \
831-
Lib/io.py -m io -o Python/deepfreeze/io.c
831+
$(srcdir)/Lib/io.py -m io -o Python/deepfreeze/io.c
832832

833833
Python/deepfreeze/_collections_abc.c: $(srcdir)/Lib/_collections_abc.py $(DEEPFREEZE_DEPS)
834834
@echo "Deepfreezing Python/deepfreeze/_collections_abc.c from Lib/_collections_abc.py"
835835
@./$(BOOTSTRAP) \
836836
$(srcdir)/Tools/scripts/deepfreeze.py \
837-
Lib/_collections_abc.py -m _collections_abc -o Python/deepfreeze/_collections_abc.c
837+
$(srcdir)/Lib/_collections_abc.py -m _collections_abc -o Python/deepfreeze/_collections_abc.c
838838

839839
Python/deepfreeze/_sitebuiltins.c: $(srcdir)/Lib/_sitebuiltins.py $(DEEPFREEZE_DEPS)
840840
@echo "Deepfreezing Python/deepfreeze/_sitebuiltins.c from Lib/_sitebuiltins.py"
841841
@./$(BOOTSTRAP) \
842842
$(srcdir)/Tools/scripts/deepfreeze.py \
843-
Lib/_sitebuiltins.py -m _sitebuiltins -o Python/deepfreeze/_sitebuiltins.c
843+
$(srcdir)/Lib/_sitebuiltins.py -m _sitebuiltins -o Python/deepfreeze/_sitebuiltins.c
844844

845845
Python/deepfreeze/genericpath.c: $(srcdir)/Lib/genericpath.py $(DEEPFREEZE_DEPS)
846846
@echo "Deepfreezing Python/deepfreeze/genericpath.c from Lib/genericpath.py"
847847
@./$(BOOTSTRAP) \
848848
$(srcdir)/Tools/scripts/deepfreeze.py \
849-
Lib/genericpath.py -m genericpath -o Python/deepfreeze/genericpath.c
849+
$(srcdir)/Lib/genericpath.py -m genericpath -o Python/deepfreeze/genericpath.c
850850

851851
Python/deepfreeze/ntpath.c: $(srcdir)/Lib/ntpath.py $(DEEPFREEZE_DEPS)
852852
@echo "Deepfreezing Python/deepfreeze/ntpath.c from Lib/ntpath.py"
853853
@./$(BOOTSTRAP) \
854854
$(srcdir)/Tools/scripts/deepfreeze.py \
855-
Lib/ntpath.py -m ntpath -o Python/deepfreeze/ntpath.c
855+
$(srcdir)/Lib/ntpath.py -m ntpath -o Python/deepfreeze/ntpath.c
856856

857857
Python/deepfreeze/posixpath.c: $(srcdir)/Lib/posixpath.py $(DEEPFREEZE_DEPS)
858858
@echo "Deepfreezing Python/deepfreeze/posixpath.c from Lib/posixpath.py"
859859
@./$(BOOTSTRAP) \
860860
$(srcdir)/Tools/scripts/deepfreeze.py \
861-
Lib/posixpath.py -m posixpath -o Python/deepfreeze/posixpath.c
861+
$(srcdir)/Lib/posixpath.py -m posixpath -o Python/deepfreeze/posixpath.c
862862

863863
Python/deepfreeze/os.c: $(srcdir)/Lib/os.py $(DEEPFREEZE_DEPS)
864864
@echo "Deepfreezing Python/deepfreeze/os.c from Lib/os.py"
865865
@./$(BOOTSTRAP) \
866866
$(srcdir)/Tools/scripts/deepfreeze.py \
867-
Lib/os.py -m os -o Python/deepfreeze/os.c
867+
$(srcdir)/Lib/os.py -m os -o Python/deepfreeze/os.c
868868

869869
Python/deepfreeze/site.c: $(srcdir)/Lib/site.py $(DEEPFREEZE_DEPS)
870870
@echo "Deepfreezing Python/deepfreeze/site.c from Lib/site.py"
871871
@./$(BOOTSTRAP) \
872872
$(srcdir)/Tools/scripts/deepfreeze.py \
873-
Lib/site.py -m site -o Python/deepfreeze/site.c
873+
$(srcdir)/Lib/site.py -m site -o Python/deepfreeze/site.c
874874

875875
Python/deepfreeze/stat.c: $(srcdir)/Lib/stat.py $(DEEPFREEZE_DEPS)
876876
@echo "Deepfreezing Python/deepfreeze/stat.c from Lib/stat.py"
877877
@./$(BOOTSTRAP) \
878878
$(srcdir)/Tools/scripts/deepfreeze.py \
879-
Lib/stat.py -m stat -o Python/deepfreeze/stat.c
879+
$(srcdir)/Lib/stat.py -m stat -o Python/deepfreeze/stat.c
880880

881881
Python/deepfreeze/__hello__.c: $(srcdir)/Lib/__hello__.py $(DEEPFREEZE_DEPS)
882882
@echo "Deepfreezing Python/deepfreeze/__hello__.c from Lib/__hello__.py"
883883
@./$(BOOTSTRAP) \
884884
$(srcdir)/Tools/scripts/deepfreeze.py \
885-
Lib/__hello__.py -m __hello__ -o Python/deepfreeze/__hello__.c
885+
$(srcdir)/Lib/__hello__.py -m __hello__ -o Python/deepfreeze/__hello__.c
886886

887887
Python/deepfreeze/__phello__.c: $(srcdir)/Lib/__phello__/__init__.py $(DEEPFREEZE_DEPS)
888888
@echo "Deepfreezing Python/deepfreeze/__phello__.c from Lib/__phello__/__init__.py"
889889
@./$(BOOTSTRAP) \
890890
$(srcdir)/Tools/scripts/deepfreeze.py \
891-
Lib/__phello__/__init__.py -m __phello__ -o Python/deepfreeze/__phello__.c
891+
$(srcdir)/Lib/__phello__/__init__.py -m __phello__ -o Python/deepfreeze/__phello__.c
892892

893893
Python/deepfreeze/__phello__.ham.c: $(srcdir)/Lib/__phello__/ham/__init__.py $(DEEPFREEZE_DEPS)
894894
@echo "Deepfreezing Python/deepfreeze/__phello__.ham.c from Lib/__phello__/ham/__init__.py"
895895
@./$(BOOTSTRAP) \
896896
$(srcdir)/Tools/scripts/deepfreeze.py \
897-
Lib/__phello__/ham/__init__.py -m __phello__.ham -o Python/deepfreeze/__phello__.ham.c
897+
$(srcdir)/Lib/__phello__/ham/__init__.py -m __phello__.ham -o Python/deepfreeze/__phello__.ham.c
898898

899899
Python/deepfreeze/__phello__.ham.eggs.c: $(srcdir)/Lib/__phello__/ham/eggs.py $(DEEPFREEZE_DEPS)
900900
@echo "Deepfreezing Python/deepfreeze/__phello__.ham.eggs.c from Lib/__phello__/ham/eggs.py"
901901
@./$(BOOTSTRAP) \
902902
$(srcdir)/Tools/scripts/deepfreeze.py \
903-
Lib/__phello__/ham/eggs.py -m __phello__.ham.eggs -o Python/deepfreeze/__phello__.ham.eggs.c
903+
$(srcdir)/Lib/__phello__/ham/eggs.py -m __phello__.ham.eggs -o Python/deepfreeze/__phello__.ham.eggs.c
904904

905905
Python/deepfreeze/__phello__.spam.c: $(srcdir)/Lib/__phello__/spam.py $(DEEPFREEZE_DEPS)
906906
@echo "Deepfreezing Python/deepfreeze/__phello__.spam.c from Lib/__phello__/spam.py"
907907
@./$(BOOTSTRAP) \
908908
$(srcdir)/Tools/scripts/deepfreeze.py \
909-
Lib/__phello__/spam.py -m __phello__.spam -o Python/deepfreeze/__phello__.spam.c
909+
$(srcdir)/Lib/__phello__/spam.py -m __phello__.spam -o Python/deepfreeze/__phello__.spam.c
910910

911911
Python/deepfreeze/frozen_only.c: $(srcdir)/Tools/freeze/flag.py $(DEEPFREEZE_DEPS)
912912
@echo "Deepfreezing Python/deepfreeze/frozen_only.c from Tools/freeze/flag.py"
913913
@./$(BOOTSTRAP) \
914914
$(srcdir)/Tools/scripts/deepfreeze.py \
915-
Tools/freeze/flag.py -m frozen_only -o Python/deepfreeze/frozen_only.c
915+
$(srcdir)/Tools/freeze/flag.py -m frozen_only -o Python/deepfreeze/frozen_only.c
916916

917917
# END: deepfreeze modules
918918

Tools/scripts/freeze_modules.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def regen_makefile(modules):
652652
deepfreezerules.append(f'\t@echo "Deepfreezing {cfile} from {_pyfile}"')
653653
deepfreezerules.append(f"\t@./$(BOOTSTRAP) \\")
654654
deepfreezerules.append(f"\t\t$(srcdir)/Tools/scripts/deepfreeze.py \\")
655-
deepfreezerules.append(f"\t\t{_pyfile} -m {src.frozenid} -o {cfile}")
655+
deepfreezerules.append(f"\t\t$(srcdir)/{_pyfile} -m {src.frozenid} -o {cfile}")
656656
deepfreezerules.append('')
657657

658658
for src in _iter_sources(modules):

0 commit comments

Comments
 (0)