Mercurial > hg > beaglert
changeset 304:d2b7df6b355b prerelease
Added Makefile support for runscreen, runscreenfg, run, runfg
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 27 May 2016 17:49:05 +0100 |
parents | b26e7c61e3b6 |
children | b57d76dcc9ae |
files | Makefile |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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: