rsudo/Makefile

21 lines
311 B
Makefile
Raw Permalink Normal View History

INSTALL_PREFIX = /usr/local/bin
CC = gcc
2017-12-02 05:43:22 +00:00
all: rsudo setuid
2017-12-07 23:50:53 +00:00
clang-format: rsudo.c
clang-format -i rsudo.c
setuid: rsudo
chown root:root rsudo
chmod 4711 rsudo
2017-12-07 23:50:53 +00:00
.PHONY: all setuid install clang-format
rsudo: rsudo.c
$(CC) -o ./rsudo rsudo.c
install: rsudo
install -Dm4711 rsudo $(INSTALL_PREFIX)/rsudo
2017-12-07 23:50:53 +00:00