Split wx target to avoid compiling two times
This commit is contained in:
parent
0e04dd4a75
commit
391c4629a7
9
Makefile
9
Makefile
|
@ -27,7 +27,7 @@ devel: venv pybinding wx
|
||||||
@$(INSIDE_VENV) pip install -e src/
|
@$(INSIDE_VENV) pip install -e src/
|
||||||
|
|
||||||
|
|
||||||
wx:
|
_build_wx/wxPython.target:
|
||||||
@$(INSIDE_VENV) echo "Building wxPython for your `python --version 2>&1` under Linux $(DISTRO_RELEASE)..."
|
@$(INSIDE_VENV) echo "Building wxPython for your `python --version 2>&1` under Linux $(DISTRO_RELEASE)..."
|
||||||
# Create a folder to build wx into
|
# Create a folder to build wx into
|
||||||
@mkdir -p _build_wx
|
@mkdir -p _build_wx
|
||||||
|
@ -40,8 +40,13 @@ wx:
|
||||||
cd `ls -d wxPython*/`; \
|
cd `ls -d wxPython*/`; \
|
||||||
pip install requests; \
|
pip install requests; \
|
||||||
python build.py dox etg --nodoc sip build bdist_wheel; \
|
python build.py dox etg --nodoc sip build bdist_wheel; \
|
||||||
ln -s `readlink -f dist/wxPython*.whl` ../; \
|
ln -sf `readlink -f dist/wxPython*.whl` ../; \
|
||||||
fi;
|
fi;
|
||||||
|
# Finally touch a dummy file to avoid phony target
|
||||||
|
@touch _build_wx/wxPython.target
|
||||||
|
|
||||||
|
|
||||||
|
wx: _build_wx/wxPython.target
|
||||||
# Install the wheel
|
# Install the wheel
|
||||||
@$(INSIDE_VENV) cd _build_wx && pip install wxPython*.whl
|
@$(INSIDE_VENV) cd _build_wx && pip install wxPython*.whl
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue