Forráskód Böngészése

Add example Makefile

Oz N Tiram 9 éve
szülő
commit
5bb961a672
1 módosított fájl, 22 hozzáadás és 0 törlés
  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