build(Makefile): switch-develop target for manual develop switching

This commit is contained in:
Sarah Vaupel 2024-10-30 14:47:40 +01:00
parent cd6e98f915
commit 4bbab689cf

View File

@ -404,6 +404,14 @@ new-develop:
$(NEW_DEVELOP)
mkdir -p $(DEVELOP)
$(MAKE) develop/.current
.PHONY: switch-develop
# HELP: switch current develop instance to DEVELOP=...
switch-develop:
if ! [ -e develop/$(DEVELOP) ]; then \
echo "Specified develop $(DEVELOP) does not exist! Not switching." ; \
exit 1 ; \
fi ; \
echo "$(DEVELOP)" > develop/.current
.PHONY: --develop
--develop:
if ! [[ -e develop ]]; then \