comparison Makefile @ 532:53ce8eac833c prerelease

Merge
author chnrx <chris.heinrichs@gmail.com>
date Thu, 23 Jun 2016 20:41:22 +0100
parents 617da76ae4d9
children d0414ec15f63
comparison
equal deleted inserted replaced
531:ddb86944e138 532:53ce8eac833c
253 @cd $(RUN_FROM) && screen -S $(SCREEN_NAME) -d -m $(RUN_COMMAND) 253 @cd $(RUN_FROM) && screen -S $(SCREEN_NAME) -d -m $(RUN_COMMAND)
254 runscreenfg: ## Run PROJECT in a screen in the foreground (can detach with ctrl-a ctrl-d) 254 runscreenfg: ## Run PROJECT in a screen in the foreground (can detach with ctrl-a ctrl-d)
255 runscreenfg: stop $(OUTPUT_FILE) 255 runscreenfg: stop $(OUTPUT_FILE)
256 @echo "Running $(RUN_COMMAND) in a screen" 256 @echo "Running $(RUN_COMMAND) in a screen"
257 @cd $(RUN_FROM) && screen -S $(SCREEN_NAME) -m $(RUN_COMMAND) 257 @cd $(RUN_FROM) && screen -S $(SCREEN_NAME) -m $(RUN_COMMAND)
258 FIFO_NAME=/tmp/belafifo
259 runscreenfifo: ## Same as runscreen, but stdout and stderr are piped to the foreground through a fifo
260 runscreenfifo: stop $(OUTPUT_FILE)
261 @echo "Running $(RUN_COMMAND), piping output to $(FIFO_NAME)"
262 @rm -rf $(FIFO_NAME)
263 @mkfifo $(FIFO_NAME)
264 @cd $(RUN_FROM) && screen -S $(SCREEN_NAME) -d -m stdbuf -e 0 -i 0 -o 0 bash -c "$(RUN_COMMAND) &> $(FIFO_NAME)"
265 @cat /tmp/belafifo
266 258
267 STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running Bela...\nscreen -S $(SCREEN_NAME) -d -m %s $(RUN_COMMAND) %s\n" 259 STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running Bela...\nscreen -S $(SCREEN_NAME) -d -m %s $(RUN_COMMAND) %s\n"
268 nostartup: ## No Bela project runs at startup 260 nostartup: ## No Bela project runs at startup
269 nostartup: 261 nostartup:
270 @echo "Disabling Bela at startup..." 262 @echo "Disabling Bela at startup..."
384 echo Restart the IDE $(LOG) &&\ 376 echo Restart the IDE $(LOG) &&\
385 make --no-print-directory -C $(BELA_DIR) idestart $(LOG) &&\ 377 make --no-print-directory -C $(BELA_DIR) idestart $(LOG) &&\
386 echo Update succesful $(LOG); \ 378 echo Update succesful $(LOG); \
387 ' $(LOG) 379 ' $(LOG)
388 380
389 .PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg runscreenfifo stop idestart idestop idestartup idenostartup ideconnect connect update checkupdate updateunsafe 381 .PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg stop idestart idestop idestartup idenostartup ideconnect connect update checkupdate updateunsafe