aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a043b1..c7e09c5 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ OBJECTDIR = obj
OUTPUT = rcon
+PREFIX = /
+
SRCS = $(wildcard $(SOURCEDIR)/*.c)
OBJS = $(SRCS:.c=.o)
OBJ = $(OBJS:$(SOURCEDIR)/%=$(OBJECTDIR)/%)
@@ -37,3 +39,7 @@ all: clean build
run: build
@$(BUILDDIR)/$(OUTPUT)
+
+install: build
+ @strip $(BUILDDIR)/$(OUTPUT)
+ @install $(BUILDDIR)/$(OUTPUT) $(PREFIX)/bin/$(OUTPUT)