summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)