I'm using the GnuWin32 project, and created a makefile
to manage the compiling of some code. In the command line I run:
set PYUIC=python "E:\PortableApps\Portable Python 2.7.3.1\App\Lib\site-packages\PyQt4\uic\pyuic.py"
my make file contains the following:
UIC := %pyuic%
HELP_VIEW := less
vpath %.ui ./ui
vpath %.py ./py
.PHONY: help
help:
${HELP_VIEW} help
%.py: %.ui
${UIC} -o ./py/$@ $^
print_%:
@echo $* = ${$*}
when I run make print_UIC
I get:
UIC = python "E:\PortableApps\Portable Python 2.7.3.1\App\Lib\site-packages\PyQt4\uic\pyuic.py"
but when I run 'make main.py' I get:
%pyuic% -o ./py/main.py ./ui/main.ui
process_begin: CreateProcess(NULL, %pyuic% -o ./py/main.py ./ui/main.ui, ...) fa
iled.
make (e=2): The system cannot find the file specified.
make: *** [main.py] Error 2
when I run %pyuic% -o ./py/main.py ./ui/main.ui
it runs with no problems, and result is as expected.
What's wrong?