From 3e1a2127aa97f73f54531823bb08d6b9debcdda0 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 25 Oct 2020 23:11:05 +0100 Subject: Makefile install target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3