When there is nothing to commit in test-sw, continue by commiting in
this repo.
.PHONY: commit-lib-update
commit-lib-update:
test $$($(TESTSW_LIB_COMMIT)) = $$($(SIMULINK_LIB_COMMIT))
- git --git-dir=doc/test-sw/.git commit -m "Update lib submodule" rpp-lib
+ if git --git-dir=doc/test-sw/.git diff-index --quiet HEAD -- rpp-lib; \
+ then echo "Nothing to commit in test-sw"; \
+ else git --git-dir=doc/test-sw/.git commit -m "Update lib submodule" rpp-lib; \
+ fi
git commit -m "Update lib submodule" doc/test-sw rpp/lib
TESTSW_LIB_COMMIT = git --git-dir=doc/test-sw/rpp-lib/.git rev-parse HEAD