BaseTools/Scripts: Add sample makefile for use with
authorMichael D Kinney <>
Wed, 2 Aug 2017 21:17:41 +0000 (14:17 -0700)
committerMichael D Kinney <>
Fri, 11 Aug 2017 18:28:35 +0000 (11:28 -0700)

Add sample makefile that can be used to test
script and can also be used as a template to start a new

This makefile contains TAB characters instead of spaces on
purpose to maximize compatibility with make utilities.

Cc: Liming Gao <>
Cc: Yonghong Zhu <>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <>
Reviewed-by: Yonghong Zhu <>
BaseTools/Scripts/RunMakefileSample.mak [new file with mode: 0644]

diff --git a/BaseTools/Scripts/RunMakefileSample.mak b/BaseTools/Scripts/RunMakefileSample.mak
new file mode 100644 (file)
index 0000000..c992b44
--- /dev/null
@@ -0,0 +1,43 @@
+## @file\r
+# Sample makefile for PREBUILD or POSTBUILD action.\r
+# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution.  The full text of the license may be found at\r
+all: show\r
+       @echo $@\r
+genc: show\r
+       @echo $@\r
+genmake: show\r
+       @echo $@\r
+modules: show\r
+       @echo $@\r
+libraries: show\r
+       @echo $@\r
+fds: show\r
+       @echo $@\r
+clean: show\r
+       @echo $@\r
+cleanall: show\r
+       @echo $@\r
+cleanlib: show\r
+       @echo $@\r
+run: show\r
+       @echo $@\r
+       @echo WORKSPACE........ $(WORKSPACE)\r
+       @echo PACKAGES_PATH.... $(PACKAGES_PATH)\r
+       @echo TARGET_ARCH...... $(TARGET_ARCH)\r
+       @echo TOOL_CHAIN_TAG... $(TOOL_CHAIN_TAG)\r
+       @echo TARGET........... $(TARGET)\r
+       @echo EXTRA_FLAGS...... $(EXTRA_FLAGS)\r