diff --git a/src/Makefile b/src/Makefile index 7dfc2c312aafe24337c7645e9e399eed2d05f0c9..3b67d2284fb8b968a513280d7a93fd3c9a6ecae1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -339,17 +339,18 @@ no-%: fi; # download/build/install a package library +# update the timestamp on main.cpp to trigger a relink with "make machine" lib-%: @if [ -e ../lib/$(LIBDIR)/Install.py ]; then \ echo "Installing lib $(@:lib-%=%)"; \ - cd ../lib/$(LIBDIR); $(PYTHON) Install.py $(args); \ + ( cd ../lib/$(LIBDIR); $(PYTHON) Install.py $(args) ); \ elif [ -e ../lib/$(LIBUSERDIR)/Install.py ]; then \ echo "Installing lib $(@:lib-user-%=%)"; \ - cd ../lib/$(LIBUSERDIR); $(PYTHON) Install.py $(args); \ + ( cd ../lib/$(LIBUSERDIR); $(PYTHON) Install.py $(args) ); \ else \ echo "Install script for lib $(@:lib-%=%) does not exist"; \ - fi; + fi; touch main.cpp # status = list src files that differ from package files # update = replace src files with newer package files