comparison Makefile @ 315:868cfb137fe5 prerelease

make runscreenfifo will now output to stdout
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 19:26:09 +0100
parents c770cdf3d8b2
children f7b19ea31bbb
comparison
equal deleted inserted replaced
314:611306d840b3 315:868cfb137fe5
183 FIFO_NAME=/tmp/belafifo 183 FIFO_NAME=/tmp/belafifo
184 runscreenfifo: stop $(OUTPUT_FILE) 184 runscreenfifo: stop $(OUTPUT_FILE)
185 @echo "Running $(RUN_COMMAND), piping output to $(FIFO_NAME)" 185 @echo "Running $(RUN_COMMAND), piping output to $(FIFO_NAME)"
186 @rm -rf $(FIFO_NAME) 186 @rm -rf $(FIFO_NAME)
187 @mkfifo $(FIFO_NAME) 187 @mkfifo $(FIFO_NAME)
188 @screen -S $(SCREEN_NAME) -d -m stdbuf -e 0 -i 0 -o 0 bash -c "$(RUN_COMMAND) | tee $(FIFO_NAME)" 188 @screen -S $(SCREEN_NAME) -d -m stdbuf -e 0 -i 0 -o 0 bash -c "$(RUN_COMMAND) &> $(FIFO_NAME)"
189 @cat /tmp/belafifo
189 190
190 BELA_AUDIO_THREAD_NAME=beaglert-audio 191 BELA_AUDIO_THREAD_NAME=beaglert-audio
191 stop: 192 stop:
192 @PID=`grep $(BELA_AUDIO_THREAD_NAME) /proc/xenomai/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $$PID ]; then echo "No process to kill"; else echo "Killing old Bela process $$PID"; kill -2 $$PID; fi; screen -X -S $(SCREEN_NAME) quit > /dev/null; exit 0; 193 @PID=`grep $(BELA_AUDIO_THREAD_NAME) /proc/xenomai/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $$PID ]; then echo "No process to kill"; else echo "Killing old Bela process $$PID"; kill -2 $$PID; fi; screen -X -S $(SCREEN_NAME) quit > /dev/null; exit 0;
193 # Remove only the user-generated objects 194 # Remove only the user-generated objects