# HG changeset patch # User Giulio Moro # Date 1464367745 -3600 # Node ID d2b7df6b355bfd6bd87e19e1a19d4eb1e558ed1f # Parent b26e7c61e3b642573551793be9034bd5676da731 Added Makefile support for runscreen, runscreenfg, run, runfg diff -r b26e7c61e3b6 -r d2b7df6b355b Makefile --- a/Makefile Fri May 27 17:28:24 2016 +0100 +++ b/Makefile Fri May 27 17:49:05 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: