Split wx target to avoid compiling two times

This commit is contained in:
Sylvain Tricot 2021-07-21 23:05:34 +02:00
parent 0e04dd4a75
commit 391c4629a7
1 changed files with 7 additions and 2 deletions

View File

@ -27,7 +27,7 @@ devel: venv pybinding wx
@$(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)..."
# Create a folder to build wx into
@mkdir -p _build_wx
@ -40,8 +40,13 @@ wx:
cd `ls -d wxPython*/`; \
pip install requests; \
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;
# Finally touch a dummy file to avoid phony target
@touch _build_wx/wxPython.target
wx: _build_wx/wxPython.target
# Install the wheel
@$(INSIDE_VENV) cd _build_wx && pip install wxPython*.whl