Skip to content
Snippets Groups Projects
Commit df56b2d6 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

trigger relink after package library build through updating the time stamp on main.cpp

parent c6d923b6
No related branches found
No related tags found
No related merge requests found
...@@ -339,17 +339,18 @@ no-%: ...@@ -339,17 +339,18 @@ no-%:
fi; fi;
# download/build/install a package library # download/build/install a package library
# update the timestamp on main.cpp to trigger a relink with "make machine"
lib-%: lib-%:
@if [ -e ../lib/$(LIBDIR)/Install.py ]; then \ @if [ -e ../lib/$(LIBDIR)/Install.py ]; then \
echo "Installing lib $(@:lib-%=%)"; \ 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 \ elif [ -e ../lib/$(LIBUSERDIR)/Install.py ]; then \
echo "Installing lib $(@:lib-user-%=%)"; \ echo "Installing lib $(@:lib-user-%=%)"; \
cd ../lib/$(LIBUSERDIR); $(PYTHON) Install.py $(args); \ ( cd ../lib/$(LIBUSERDIR); $(PYTHON) Install.py $(args) ); \
else \ else \
echo "Install script for lib $(@:lib-%=%) does not exist"; \ echo "Install script for lib $(@:lib-%=%) does not exist"; \
fi; fi; touch main.cpp
# status = list src files that differ from package files # status = list src files that differ from package files
# update = replace src files with newer package files # update = replace src files with newer package files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment