diff --git a/Makefile b/Makefile index 90a5237..3943831 100644 --- a/Makefile +++ b/Makefile @@ -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