comparison Makefile @ 327:ccfcf1303f12 prerelease

make run (and similar) run from within the project folder
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 03 Jun 2016 17:09:26 +0100
parents bd54819ccfa7
children cfdf0003e6e8
comparison
equal deleted inserted replaced
326:bd54819ccfa7 327:ccfcf1303f12
185 185
186 Bela: $(OUTPUT_FILE) 186 Bela: $(OUTPUT_FILE)
187 187
188 runfg: run 188 runfg: run
189 run: stop Bela 189 run: stop Bela
190 echo "Running $(RUN_COMMAND)" 190 @echo "Running $(RUN_COMMAND)"
191 $(RUN_COMMAND) 191 @cd $(PROJECT_DIR) && $(RUN_COMMAND)
192 runscreen: stop $(OUTPUT_FILE) 192 runscreen: stop $(OUTPUT_FILE)
193 echo "Running $(RUN_COMMAND) in a screen" 193 @echo "Running $(RUN_COMMAND) in a screen"
194 screen -S $(SCREEN_NAME) -d -m $(RUN_COMMAND) 194 @cd $(PROJECT_DIR) && screen -S $(SCREEN_NAME) -d -m $(RUN_COMMAND)
195 runscreenfg: stop $(OUTPUT_FILE) 195 runscreenfg: stop $(OUTPUT_FILE)
196 echo "Running $(RUN_COMMAND) in a screen" 196 @echo "Running $(RUN_COMMAND) in a screen"
197 screen -S $(SCREEN_NAME) -m $(RUN_COMMAND) 197 @cd $(PROJECT_DIR) && screen -S $(SCREEN_NAME) -m $(RUN_COMMAND)
198 FIFO_NAME=/tmp/belafifo 198 FIFO_NAME=/tmp/belafifo
199 runscreenfifo: stop $(OUTPUT_FILE) 199 runscreenfifo: stop $(OUTPUT_FILE)
200 @echo "Running $(RUN_COMMAND), piping output to $(FIFO_NAME)" 200 @echo "Running $(RUN_COMMAND), piping output to $(FIFO_NAME)"
201 @rm -rf $(FIFO_NAME) 201 @rm -rf $(FIFO_NAME)
202 @mkfifo $(FIFO_NAME) 202 @mkfifo $(FIFO_NAME)
203 @cd $(PROJECT_DIR)
203 @screen -S $(SCREEN_NAME) -d -m stdbuf -e 0 -i 0 -o 0 bash -c "$(RUN_COMMAND) &> $(FIFO_NAME)" 204 @screen -S $(SCREEN_NAME) -d -m stdbuf -e 0 -i 0 -o 0 bash -c "$(RUN_COMMAND) &> $(FIFO_NAME)"
204 @cat /tmp/belafifo 205 @cat /tmp/belafifo
205 206
206 BELA_AUDIO_THREAD_NAME=beaglert-audio 207 BELA_AUDIO_THREAD_NAME=beaglert-audio
207 stop: 208 stop: