diff options
Diffstat (limited to 'doc/examples/running-commands/files/src/Makefile')
-rw-r--r-- | doc/examples/running-commands/files/src/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/examples/running-commands/files/src/Makefile b/doc/examples/running-commands/files/src/Makefile new file mode 100644 index 000000000..8c8425116 --- /dev/null +++ b/doc/examples/running-commands/files/src/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) -Wall -o $@ $< |