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

This commit is contained in:
Axel Kohlmeyer 2017-08-11 08:16:20 -04:00
parent c6d923b6c8
commit df56b2d6a4
1 changed files with 4 additions and 3 deletions

View File

@ -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