| 1 |
# Sample makefile for hello.c |
| 2 |
# |
| 3 |
.PHONY: all install |
| 4 |
|
| 5 |
all: hello |
| 6 |
|
| 7 |
install: |
| 8 |
install -d ${DESTDIR}${PREFIX}/bin |
| 9 |
install -m 755 hello ${DESTDIR}${PREFIX}/bin |
| 10 |
|
| 11 |
hello: hello.c |
| 12 |
$(CC) -DGREETING_MESSAGE="\"${GREETING}\"" -Wall -o $@ $< |