aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-10-25 23:11:05 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-10-25 23:11:05 +0100
commit3e1a2127aa97f73f54531823bb08d6b9debcdda0 (patch)
treeb5f875c5db6843a076d56cd75585f4c0362507fe /Makefile
parent5a88c5b61e4575397793f80ca780416104e904bb (diff)
downloadminecraft-rcon-master.tar.gz
Makefile install targetHEADmaster
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)