comparison Makefile @ 410:41436dcd2cb0 prerelease

Makefile can stop ide (idestop)
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 15 Jun 2016 20:58:48 +0100
parents 49e708a7ae51
children fc470c216464
comparison
equal deleted inserted replaced
409:49e708a7ae51 410:41436dcd2cb0
268 stop: ## Stops any Bela program that is currently running 268 stop: ## Stops any Bela program that is currently running
269 stop: 269 stop:
270 @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; 270 @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;
271 271
272 idestart: ## Starts the on-board IDE 272 idestart: ## Starts the on-board IDE
273 idestart: 273 idestart: idestop
274 $(BELA_IDE_RUN_COMMAND) 274 @printf "Starting IDE..."
275 @$(BELA_IDE_RUN_COMMAND)
276 @printf "done\n"
275 277
276 idestop: ## Stops the on-board IDE 278 idestop: ## Stops the on-board IDE
277 @echo TODO 279 @printf "Stopping currently running IDE..."
278 @exit 1 280 @screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null; exit 0;
281 @printf "done\n"
279 282
280 BELA_IDE_STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n" > $(BELA_IDE_STARTUP_SCRIPT) 283 BELA_IDE_STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n" > $(BELA_IDE_STARTUP_SCRIPT)
281 284
282 idestartup: ## Enables the IDE at startup 285 idestartup: ## Enables the IDE at startup
283 @echo "Enabling the IDE at startup" 286 @echo "Enabling the IDE at startup"