From 391c4629a76c34f1e882d23005ea7fef185fa747 Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Wed, 21 Jul 2021 23:05:34 +0200 Subject: [PATCH] Split wx target to avoid compiling two times --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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