Mercurial > hg > beaglert
comparison Makefile @ 409:49e708a7ae51 prerelease
Makefile: renamed iderun to idestart in order to avoid confusion with runide
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 15 Jun 2016 14:16:20 +0100 |
parents | e72853aecab8 |
children | 41436dcd2cb0 |
comparison
equal
deleted
inserted
replaced
408:f92afe6018d7 | 409:49e708a7ae51 |
---|---|
6 # This Makefile is intended for use on the BeagleBone Black itself | 6 # This Makefile is intended for use on the BeagleBone Black itself |
7 # and not for cross-compiling | 7 # and not for cross-compiling |
8 | 8 |
9 .DEFAULT_GOAL := Bela | 9 .DEFAULT_GOAL := Bela |
10 | 10 |
11 NO_PROJECT_TARGETS=coreclean distclean stop help iderun idestop idestartup idenostartup | 11 NO_PROJECT_TARGETS=coreclean distclean stop help idestart idestop idestartup idenostartup |
12 NO_PROJECT_TARGETS_MESSAGE=PROJECT or EXAMPLE should be set for all targets except: $(NO_PROJECT_TARGETS) | 12 NO_PROJECT_TARGETS_MESSAGE=PROJECT or EXAMPLE should be set for all targets except: $(NO_PROJECT_TARGETS) |
13 # Type `$ make help` to get a description of the functionalities of this Makefile. | 13 # Type `$ make help` to get a description of the functionalities of this Makefile. |
14 help: ## Show this help | 14 help: ## Show this help |
15 @echo 'Usage: make [target] CL=[command line options] [PROJECT=[projectName] | EXAMPLE=[exampleName]]' | 15 @echo 'Usage: make [target] CL=[command line options] [PROJECT=[projectName] | EXAMPLE=[exampleName]]' |
16 @printf "\n$(NO_PROJECT_TARGETS_MESSAGE)\n\n" | 16 @printf "\n$(NO_PROJECT_TARGETS_MESSAGE)\n\n" |
267 | 267 |
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 iderun: ## Starts the on-board IDE | 272 idestart: ## Starts the on-board IDE |
273 iderun: | 273 idestart: |
274 $(BELA_IDE_RUN_COMMAND) | 274 $(BELA_IDE_RUN_COMMAND) |
275 | 275 |
276 idestop: ## Stops the on-board IDE | 276 idestop: ## Stops the on-board IDE |
277 @echo TODO | 277 @echo TODO |
278 @exit 1 | 278 @exit 1 |
285 @chmod +x $(BELA_IDE_STARTUP_SCRIPT) | 285 @chmod +x $(BELA_IDE_STARTUP_SCRIPT) |
286 | 286 |
287 idenostartup: ## Disables the IDE at startup | 287 idenostartup: ## Disables the IDE at startup |
288 @echo "Disabling the IDE at startup" | 288 @echo "Disabling the IDE at startup" |
289 @printf "#!/bin/sh\n#\n\n# This file is autogenerated by Bela. Do not edit!\n\n# The Bela IDE is disabled on startup.\n" > $(BELA_IDE_STARTUP_SCRIPT) | 289 @printf "#!/bin/sh\n#\n\n# This file is autogenerated by Bela. Do not edit!\n\n# The Bela IDE is disabled on startup.\n" > $(BELA_IDE_STARTUP_SCRIPT) |
290 .PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg runscreenfifo stop iderun idestop iderunup idenostartup | 290 .PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg runscreenfifo stop idestart idestop idestartup idenostartup |