# HG changeset patch # User Giulio Moro # Date 1464367894 -3600 # Node ID b57d76dcc9aee77bcba8228f735f06b0e35504a6 # Parent d2b7df6b355bfd6bd87e19e1a19d4eb1e558ed1f# Parent 421a69d42943b4ca14e8822b798ab117d072a0ff Merge diff -r 421a69d42943 -r b57d76dcc9ae Makefile --- a/Makefile Fri May 27 17:40:44 2016 +0100 +++ b/Makefile Fri May 27 17:51:34 2016 +0100 @@ -30,6 +30,7 @@ SCREEN_NAME?=BeagleRT +#TODO: run these lines only if the command is not syntax or $(shell mkdir -p $(PROJECT_DIR)/build) RM := rm -rf STATIC_LIBS := ./libprussdrv.a ./libNE10.a @@ -170,13 +171,17 @@ $(OUTPUT_FILE): Bela runfg: run -run: $(OUTPUT_FILE) - @echo "Running $(OUTPUT_FILE)" - @$(OUTPUT_FILE) +run: stop $(OUTPUT_FILE) + echo "Running $(OUTPUT_FILE)" + $(OUTPUT_FILE) runscreen: stop $(OUTPUT_FILE) runscreen: - @echo "Running $(OUTPUT_FILE) in a screen" + echo "Running $(OUTPUT_FILE) in a screen" + screen -S $(SCREEN_NAME) -d -m $(OUTPUT_FILE) +runscreenfg: + echo "Running $(OUTPUT_FILE) in a screen" + screen -S $(SCREEN_NAME) -m $(OUTPUT_FILE) BELA_AUDIO_THREAD_NAME=beaglert-audio stop: