aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-05 14:32:25 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-05 14:32:25 +0200
commitef48dde3a65e1c864ca8914fedb04741bbb67acd (patch)
tree25be6bfad11548e8fd20a455371d5b3f84f48937
parentb278a7c1c38b9059c79a3069b76788f6c8a94c98 (diff)
downloadheadstripper-ef48dde3a65e1c864ca8914fedb04741bbb67acd.tar.gz
Makefile
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9b91297..2dea50c 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ BUILDDIR = build
SOURCEDIR = src
OBJECTDIR = obj
OUTPUT = headstripper
+PREFIX = /
SRCS = $(wildcard $(SOURCEDIR)/*.c)
OBJS = $(SRCS:.c=.o)
@@ -43,3 +44,6 @@ clean:
@echo [RM] $(BUILDDIR)/$(OUTPUT)
@rm -df $(OBJ)
@rm -Rdf $(BUILDDIR) $(OBJECTDIR)
+
+install: build
+ @cp $(BUILDDIR)/$(OUTPUT) $(PREFIX)/bin/$(OUTPUT)