# HG changeset patch # User Giulio Moro # Date 1465951702 -3600 # Node ID adb4fafbeaefc292b8276b6d3d181422fe034d63 # Parent ff60102d5f39bc380576133a62062704d12f08a0 Fixed 'make stop' kills IDE diff -r ff60102d5f39 -r adb4fafbeaef Makefile --- a/Makefile Wed Jun 15 01:34:29 2016 +0100 +++ b/Makefile Wed Jun 15 01:48:22 2016 +0100 @@ -8,7 +8,7 @@ .DEFAULT_GOAL := Bela -NO_PROJECT_TARGETS=coreclean distclean stop help iderun idestop iderunup idenostartup +NO_PROJECT_TARGETS=coreclean distclean stop help iderun idestop idestartup idenostartup NO_PROJECT_TARGETS_MESSAGE=PROJECT or EXAMPLE should be set for all targets except: $(NO_PROJECT_TARGETS) # Type `$ make help` to get a description of the functionalities of this Makefile. help: ## Show this help @@ -52,7 +52,8 @@ SCREEN_NAME?=Bela BELA_IDE_STARTUP_SCRIPT?=/root/Bela_node.sh BELA_IDE_HOME?=/root/Bela/IDE -BELA_IDE_SCREEN_NAME?=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 node index.js BELA_IDE_STOP_COMMAND?=screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null