Add install target to Makefile

This commit is contained in:
madmaurice 2021-01-07 21:13:59 +01:00
parent 2c397da373
commit 8ac3b8afe3

View file

@ -1,5 +1,11 @@
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
all: pidjail all: pidjail
pidjail: main.c pidjail: main.c
gcc -o $@ $^ gcc -o $@ $^
chmod u+s $@
.PHONY: install
install:
install -D -m 4755 -o root pidjail $(BINDIR)/pidjail