]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/UPT/Makefile
BaseTools: skip updating temporary variable.
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Makefile
CommitLineData
4234283c
LG
1## @file\r
2# Windows makefile for UPT tools build.\r
3#\r
4# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13\r
14!IFNDEF PYTHON_FREEZER_PATH\r
15!ERROR PYTHON_FREEZER_PATH must be defined!\r
16!ENDIF\r
17\r
18FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe\r
19\r
20MODULES=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8,encodings.utf_16_le,encodings.latin_1,encodings.ascii\r
21\r
22BIN_DIR = .\Bin\r
23SOURCES_PATH = .\r
24\r
25APPLICATIONS=$(BIN_DIR)\UPT.exe\r
26\r
2bcc713e 27UPT_BUILDVERSION_PYTHON=$(SOURCES_PATH)\BuildVersion.py\r
4234283c
LG
28\r
29all: SetPythonPath $(APPLICATIONS)\r
30\r
31SetPythonPath:\r
32 set PYTHONPATH= $(SOURCES_PATH)\r
33\r
2bcc713e 34$(BIN_DIR)\UPT.exe: $(SOURCES_PATH)\UPT.py $(UPT_BUILDVERSION_PYTHON)\r
4234283c
LG
35 @pushd . & @cd build & @$(FREEZE) --include-modules=$(MODULES) --install-dir=$(BIN_DIR) UPT.py & @popd\r
36 @pushd . & @copy .\Dll\sqlite3.dll .\Bin\Sqlite3.dll & @popd \r
37clean:\r
38cleanall: \r
39 @del /f /q $(BIN_DIR)\*.pyd $(BIN_DIR)\*.dll\r
40 @for %%i in ($(APPLICATIONS)) do @del /f /q %%i\r
41\r