Skip to content

Commit

Permalink
Makefile: allow insertion of user-defined makefiles at the top and bo…
Browse files Browse the repository at this point in the history
…ttom
  • Loading branch information
giuliomoro committed May 20, 2020
1 parent 5609ad4 commit 74eb2a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -24,3 +24,5 @@ resources/tools/mcasp-dump-tool/mcasp-dump-tool
lib/
uploads/
tmp/
CustomMakefileTop.in
CustomMakefileBottom.in
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -19,6 +19,7 @@
## RELINK= -- specify whether to force re-linking the project file (1) or not (0, default). Set it to 1 when developing a library.
###
##available targets: #
-include CustomMakefileTop.in
.DEFAULT_GOAL := Bela

DISTCC ?= 0 # set this to 1 to use distcc by default
Expand All @@ -27,7 +28,7 @@ DISTCC ?= 0 # set this to 1 to use distcc by default
%.d:

AT?=@
NO_PROJECT_TARGETS=help coreclean distclean startup startuploop stopstartup stoprunning stop nostartup connect_startup connect idestart idestop idestartup idenostartup ideconnect scsynthstart scsynthstop scsynthconnect scsynthstartup scsynthnostartup update checkupdate updateunsafe lib lib/libbela.so lib/libbelaextra.so lib/libbela.a lib/libbelaextra.a csoundstart
NO_PROJECT_TARGETS+=help coreclean distclean startup startuploop stopstartup stoprunning stop nostartup connect_startup connect idestart idestop idestartup idenostartup ideconnect scsynthstart scsynthstop scsynthconnect scsynthstartup scsynthnostartup update checkupdate updateunsafe lib lib/libbela.so lib/libbelaextra.so lib/libbela.a lib/libbelaextra.a csoundstart
NO_PROJECT_TARGETS_MESSAGE=PROJECT or EXAMPLE should be set for all targets except: $(NO_PROJECT_TARGETS)
# list of targets that automatically activate the QUIET=true flag
QUIET_TARGETS=runide
Expand Down Expand Up @@ -809,3 +810,4 @@ heavy-unzip-archive: stop
$(AT) [ -f $(PROJECT_DIR)/render.cpp ] || { cp $(BELA_DIR)/scripts/hvresources/render.cpp $(PROJECT_DIR)/ 2> /dev/null || echo "No default render.cpp found on the board"; }

.PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg stopstartup stoprunning stop idestart idestop idestartup idenostartup ideconnect connect update checkupdate updateunsafe csoundstart scsynthstart scsynthstop scsynthstartup scsynthnostartup scsynthconnect lib c
-include CustomMakefileBottom.in

0 comments on commit 74eb2a5

Please sign in to comment.