commit | 19ed5170356495f5fc67189513c5739780ee6a81 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Fri Mar 04 16:24:03 2016 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Fri Mar 04 16:24:03 2016 +0800 |
tree | da08b1a8d6b5b059e9eaeb2ec6b12c2597118b17 | |
parent | a7c071914b83b9832a9fa1fba4f6a2212b38c98f [diff] [blame] |
Makefile: Add clean & install targets Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/Makefile b/Makefile index 24a5cf4..ebf69f3 100644 --- a/Makefile +++ b/Makefile
@@ -1,5 +1,16 @@ CC = gcc CFLAGS = -Wall -Wextra -Werror +INSTALL = install +prefix = /usr/local +sbindir = ${prefix}/sbin all: inarp + +.PHONY: clean +clean: + rm -f inarp + +.PHONY: install +install: all + $(INSTALL) -m 0755 -D inarp $(DESTDIR)$(sbindir)/inarp