summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Vahlman <kalle.vahlman@movial.com>2011-12-08 08:03:35 +0000
committerKalle Vahlman <kalle.vahlman@movial.com>2011-12-08 08:03:35 +0000
commitadbc551d64f18e415acd3d81d084643311b62948 (patch)
tree859a4238609d66c09424b4a710b8918d9594a034
parentb650a4f180b03ba83b294dcd3733de0720c06d8b (diff)
Add DESTDIR supporting install target and a clean target
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 61be941..52a8e09 100644
--- a/Makefile
+++ b/Makefile
@@ -5,3 +5,13 @@ SOURCES = newmac.c
snowball-mactool: $(SOURCES)
$(CC) -static $(SOURCES) -o $@
+
+prefix := /usr/local
+
+install:
+ install -d $(DESTDIR)/$(prefix)/bin
+ install -m 0775 snowball-mactool $(DESTDIR)/$(prefix)/bin
+
+clean:
+ rm -rf snowball-mactool
+