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