Add clang-format target to make

This commit is contained in:
ArsenArsen 2017-12-08 00:50:53 +01:00
parent 8a24646c49
commit 43f25c10ac
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2
1 changed files with 5 additions and 1 deletions

View File

@ -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