secret/Makefile
Adrien Gallouët fad4fe5f62 Allow make PREFIX=
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-10-15 13:11:00 +00:00

19 lines
352 B
Makefile

CC = cc
CFLAGS = -Wall -O2
prefix = /usr/local
PREFIX = $(prefix)
secret:
$(X)$(CC) $(EXTRA) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) secret.c -o secret
install: secret
mkdir -p $(DESTDIR)$(PREFIX)/bin
mv -f secret $(DESTDIR)$(PREFIX)/bin
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/secret
clean:
rm -f secret
.PHONY: secret install uninstall clean