Add clang-format target to make
This commit is contained in:
parent
8a24646c49
commit
43f25c10ac
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -3,14 +3,18 @@ CC = gcc
|
|||
|
||||
all: rsudo setuid
|
||||
|
||||
clang-format: rsudo.c
|
||||
clang-format -i rsudo.c
|
||||
|
||||
setuid: rsudo
|
||||
chown root:root rsudo
|
||||
chmod 4711 rsudo
|
||||
|
||||
.PHONY: all setuid
|
||||
.PHONY: all setuid install clang-format
|
||||
|
||||
rsudo: rsudo.c
|
||||
$(CC) -o ./rsudo rsudo.c
|
||||
|
||||
install: rsudo
|
||||
install -Dm4711 rsudo $(INSTALL_PREFIX)/rsudo
|
||||
|
||||
|
|
Loading…
Reference in a new issue