Please sign in to comment.
Process multiple goals sequentially.
git-svn-id: file:///openmsx-svn/code/openmsx/trunk@6692 7512d703-071c-0410-b5c2-d2bdd895b7d1
- Loading branch information...
Showing with 48 additions and 1 deletion.
|@@ -0,0 +1,9 @@|
|# Declares a dependency between each pair of consecutive goals in GOAL_SEQUENCE.|
|$(word 2,$(GOAL_SEQUENCE)): $(word 1,$(GOAL_SEQUENCE))|
|ifneq ($(words $(GOAL_SEQUENCE)),1)|
|@@ -0,0 +1,38 @@|
|# Entry point of build system.|
|# Do a sanity check on the given goal(s) and processes them sequentially.|
|# Sequential processing is needed because for example "clean" and "all" cannot|
|# run in parallel. Some goals might be able to run in parallel, but that is an|
|# optimization we can do later, if it is really worth it.|
|# All goals we want to expose to the user.|
|USER_GOALS:=3rdparty all bindist clean dist install probe run staticbindist|
|# Mark all goals as logical targets.|
|# Reject unknown goals.|
|ifeq ($(words $(UNKNOWN_GOALS)),1)|
|$(error Unknown goal: $(UNKNOWN_GOALS))|
|$(error Unknown goals: $(UNKNOWN_GOALS))|
|# Make default goal explicit.|
|ifeq ($(words $(MAKECMDGOALS)),1)|
|# Single goal, run it in actual Makefile.|
|# Multiple goals are given, process them sequentially.|
|@$(MAKE) --no-print-directory -f build/main.mk $@|