Add install target to Makefile
This commit is contained in:
parent
2c397da373
commit
8ac3b8afe3
1 changed files with 7 additions and 1 deletions
8
Makefile
8
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
|
||||
|
|
Loading…
Reference in a new issue