Mercurial > hg > beaglert
changeset 417:f4c41419f2e3 prerelease
Makefile added connect and ideconnect goals
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 16 Jun 2016 03:25:56 +0100 |
parents | 287bcb07de9a |
children | a40ba6f91b1e |
files | Makefile |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Jun 16 02:27:33 2016 +0100 +++ b/Makefile Thu Jun 16 03:25:56 2016 +0100 @@ -8,7 +8,7 @@ .DEFAULT_GOAL := Bela -NO_PROJECT_TARGETS=coreclean distclean stop help idestart idestop idestartup idenostartup +NO_PROJECT_TARGETS=coreclean distclean stop help idestart idestop idestartup idenostartup connect ideconnect NO_PROJECT_TARGETS_MESSAGE=PROJECT or EXAMPLE should be set for all targets except: $(NO_PROJECT_TARGETS) # Type `$ make help` to get a description of the functionalities of this Makefile. help: ## Show this help @@ -202,7 +202,7 @@ # This rule compiles c and c++ source files without output or linking SYNTAX: $(C_OBJS) $(CPP_OBJS) -projectclean:## Remove the project's build objects & binary +projectclean:## Remove the PROJECT's build objects & binary -$(RM) $(PROJECT_DIR)/build/* $(OUTPUT_FILE) -@echo ' ' @@ -269,6 +269,9 @@ stop: @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; +connect: ## Connects to the running Bela program (if any), can detach with ctrl-a ctrl-d. + @screen -r -S $(SCREEN_NAME) + idestart: ## Starts the on-board IDE idestart: idestop @printf "Starting IDE..." @@ -290,4 +293,8 @@ idenostartup: ## Disables the IDE at startup @echo "Disabling the IDE at startup" @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) -.PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg runscreenfifo stop idestart idestop idestartup idenostartup + +ideconnect: ## Brings in the foreground the IDE that currently is running in a screen (if any), can detach with ctrl-a ctrl-d. + @screen -r -S $(BELA_IDE_SCREEN_NAME) + +.PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg runscreenfifo stop idestart idestop idestartup idenostartup ideconnect connect