From 1190c306040b6e120a3bf3c5de8aac86a3abe2e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 17 Apr 2019 17:16:16 +0200 Subject: [PATCH] Added install target to Makefile. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4bf24e9..3401f34 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ CC=gcc DEBUG=0 +PREFIX=/usr/local INCFLAGS=`pkg-config x11 --cflags` LDFLAGS=`pkg-config x11 --libs` CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror @@ -34,7 +35,10 @@ endif tinyclip: $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) -.PHONY: clean +.PHONY: clean install clean: $(RM) $(OBJS) + +install: tinyclip + install -m 755 tinyclip $(PREFIX)/bin/