浏览代码

Add example Makefile

Oz N Tiram 9 年之前
父节点
当前提交
5bb961a672
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      docs/Makefile

+ 22 - 0
docs/Makefile

@@ -0,0 +1,22 @@
+###
+#
+# This is a simple make file demonstrating how to make complex build 
+# dependencies, letting make handle those for you.
+#
+###
+
+bla:
+	echo "bla" && exit 1;
+
+# This target will never succeed because it depends on bla, which always fails
+foo: bla
+	echo "foo"
+
+okydoky:
+	echo "okyliydokilydoo" && exit 0;
+
+fine: okydoky 
+	echo "I'm fine"
+
+
+.PHONY: bla foo okydoky