diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2023-04-26 16:36:31 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2023-05-03 17:13:16 -0600 |
commit | fb463df315ea1e9dba2be962c86884500f3c198e (patch) | |
tree | dd3c2437a08257449e431815640131e7b1336aba | |
parent | 7e712794a9baeceed8477b05472086a288e7a43f (diff) | |
download | librsvg-fb463df315ea1e9dba2be962c86884500f3c198e.tar.gz |
generate-msvc.mak: Have a default value for $(PYTHON)
...when generating the full NMake Makefiles and auxiliary build files from a
GIT checkout, so that one can just use the Python executable that is found in
%PATH%. Add a message to tell people to check whether they need to pass in
PYTHON=... when things fail.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/824>
-rw-r--r-- | win32/generate-msvc.mak | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/win32/generate-msvc.mak b/win32/generate-msvc.mak index 4a93afb8..cf5c30ed 100644 --- a/win32/generate-msvc.mak +++ b/win32/generate-msvc.mak @@ -33,13 +33,19 @@ generate-docs: # Generate NMake Makefiles (for git checkouts only) !ifndef IS_NOT_GIT +# Either having python.exe your PATH will work or passing in +# PYTHON=<full path to your Python interpretor> will do +!ifndef PYTHON +PYTHON=python +!endif + config.h.win32: ..\.git ..\configure.ac prebuild.py config.h.win32.in config-msvc.mak: ..\.git ..\configure.ac prebuild.py config-msvc.mak.in ..\include\librsvg\rsvg-version.h: ..\.git ..\configure.ac prebuild.py ..\include\librsvg\rsvg-version.h.in generate-nmake-files: config.h.win32 config-msvc.mak ..\include\librsvg\rsvg-version.h - @if not "$(PYTHON)" == "" $(PYTHON) prebuild.py - @if "$(PYTHON)" == "" echo You need to specify your Python interpreter PATH by passing in PYTHON^=^<full_path_to_python_interpreter^> + @echo If error meesages appear here you will need to pass in PYTHON=^<path_to_python.exe^>... + @$(PYTHON) prebuild.py remove-generated-nmake-files: ..\.git @-del /f/q config-msvc.mak |