summaryrefslogtreecommitdiff
path: root/doc/examples/composition/files/hello/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/composition/files/hello/Makefile')
-rw-r--r--doc/examples/composition/files/hello/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/examples/composition/files/hello/Makefile b/doc/examples/composition/files/hello/Makefile
new file mode 100644
index 000000000..21471d40f
--- /dev/null
+++ b/doc/examples/composition/files/hello/Makefile
@@ -0,0 +1,12 @@
+# Sample makefile for hello.c
+#
+.PHONY: all install
+
+all: hello
+
+install:
+ install -d ${DESTDIR}${PREFIX}/bin
+ install -m 755 hello ${DESTDIR}${PREFIX}/bin
+
+hello: hello.c
+ $(CC) $< -o $@ -Wall -lhello