Mercurial > hg > beaglert
comparison Makefile @ 426:4c2588930b0a prerelease
Makefile sets attributes of Bela_startup.sh file
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 16 Jun 2016 18:08:26 +0100 |
parents | 9614e2f4b76e |
children | 7a074e238db3 |
comparison
equal
deleted
inserted
replaced
425:99de323c13b3 | 426:4c2588930b0a |
---|---|
270 | 270 |
271 startup: ## Makes PROJECT run at startup | 271 startup: ## Makes PROJECT run at startup |
272 startup: Bela | 272 startup: Bela |
273 @echo "Enabling Bela at startup..." | 273 @echo "Enabling Bela at startup..." |
274 @$(STARTUP_COMMAND) > $(BELA_STARTUP_SCRIPT) | 274 @$(STARTUP_COMMAND) > $(BELA_STARTUP_SCRIPT) |
275 | 275 @chmod +x $(BELA_STARTUP_SCRIPT) |
276 stop: ## Stops any Bela program that is currently running | 276 stop: ## Stops any Bela program that is currently running |
277 stop: | 277 stop: |
278 @PID=`grep $(BELA_AUDIO_THREAD_NAME) /proc/xenomai/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $$PID ]; then [ $(QUIET) = true ] || echo "No process to kill"; else [ $(QUIET) = true ] || echo "Killing old Bela process $$PID"; kill -2 $$PID; fi; screen -X -S $(SCREEN_NAME) quit > /dev/null; exit 0; | 278 @PID=`grep $(BELA_AUDIO_THREAD_NAME) /proc/xenomai/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $$PID ]; then [ $(QUIET) = true ] || echo "No process to kill"; else [ $(QUIET) = true ] || echo "Killing old Bela process $$PID"; kill -2 $$PID; fi; screen -X -S $(SCREEN_NAME) quit > /dev/null; exit 0; |
279 | 279 |
280 connect: ## Connects to the running Bela program (if any), can detach with ctrl-a ctrl-d. | 280 connect: ## Connects to the running Bela program (if any), can detach with ctrl-a ctrl-d. |