# HG changeset patch # User Giulio Moro # Date 1466281395 -3600 # Node ID 7a074e238db3f4c5ce4d116d76a1306096d3ee8d # Parent e49ae69acbe82147b0fca43144f857a4a4911d3a Makefile: IDE runs in a loop diff -r e49ae69acbe8 -r 7a074e238db3 Makefile --- a/Makefile Sat Jun 18 04:19:17 2016 +0100 +++ b/Makefile Sat Jun 18 21:23:15 2016 +0100 @@ -57,7 +57,7 @@ BELA_IDE_HOME?=/root/Bela/IDE # A bug in this version of screen forces us to use two screen names which beginning substrings do not match (Bela, Bela-IDE would cause problems) BELA_IDE_SCREEN_NAME?=IDE-Bela -BELA_IDE_RUN_COMMAND?=cd $(BELA_IDE_HOME) && screen -S $(BELA_IDE_SCREEN_NAME) -d -m /usr/local/bin/node index.js +BELA_IDE_RUN_COMMAND?=cd $(BELA_IDE_HOME) && screen -S $(BELA_IDE_SCREEN_NAME) -d -m bash -c "while true; do /usr/local/bin/node index.js; sleep 0.5; done" BELA_IDE_STOP_COMMAND?=screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null ifneq (,$(filter $(QUIET_TARGETS),$(MAKECMDGOALS))) @@ -291,7 +291,7 @@ @screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null; exit 0; @printf "done\n" -BELA_IDE_STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n" > $(BELA_IDE_STARTUP_SCRIPT) +BELA_IDE_STARTUP_COMMAND=printf '\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n' > $(BELA_IDE_STARTUP_SCRIPT) idestartup: ## Enables the IDE at startup @echo "Enabling the IDE at startup"