From 8ac3b8afe31718d436f6dfdb6dc81726c2c3c39e Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Thu, 7 Jan 2021 21:13:59 +0100 Subject: [PATCH] Add install target to Makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 146b925..ba82920 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin + all: pidjail pidjail: main.c gcc -o $@ $^ - chmod u+s $@ + +.PHONY: install +install: + install -D -m 4755 -o root pidjail $(BINDIR)/pidjail