浏览代码

Added phony target for making all builds

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7724 8c9fc860-2736-0410-a75d-ab315db34111
negelef 7 年之前
父节点
当前提交
d6e5da05c2
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tools/builds/a2/makefile

+ 6 - 1
tools/builds/a2/makefile

@@ -1,6 +1,6 @@
 all: oberon
 
-.PHONY: all compiler execution compilation execution clean
+.PHONY: all compiler execution compilation execution builds clean
 MAKEFLAGS += --no-builtin-rules --no-builtin-variables
 .SUFFIXES: # delete the default suffixes
 
@@ -41,6 +41,11 @@ execution: Oberon.Execution.Test.Diff
 Oberon.Execution.Test.Diff: oberon FoxTest.GofU source/Oberon.Execution.Test
 	@./oberon FoxTest.Compile source/Oberon.Execution.Test
 
+# builds
+
+builds:
+	@make $(foreach platform,$(platforms),&& make build platform=$(platform))
+
 ifdef platform
 
 .PHONY: build