projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20ce694
)
Add "install" target
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Mon, 25 Jan 2016 13:53:06 +0000
(14:53 +0100)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Mon, 25 Jan 2016 13:53:06 +0000
(14:53 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 0ad5c8b110f27cf8d0075b84b988e4b362ee2e51..4842452351478c52732d76dfc479b464836a7217 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,6
+1,9
@@
CC ?= gcc
+PREFIX ?= /usr/local
CFLAGS = -Wall
+.PHONY: clean install
+
nmrp-flash: nmrp.o tftp.o main.o
$(CC) $(CFLAGS) -o nmrp-flash nmrp.o tftp.o main.o
@@
-14,5
+17,8
@@
main.o: main.c nmrpd.h
$(CC) $(CFLAGS) -c -o main.o main.c
clean:
- rm -f nmrp.o tftp.o main.o nmrpd
+ rm -f nmrp.o tftp.o main.o nmrp-flash
+
+install: nmrp-flash
+ install -m 755 nmrp-flash $(PREFIX)/bin