nuke/Makefile

22 lines
367 B
Makefile
Raw Normal View History

2019-01-02 20:30:11 -08:00
PREFIX=
all: nuke
2019-01-03 01:51:33 -08:00
nuke: *.h *.c
cc nuke.c -lncurses -g -o nuke
2019-01-02 20:30:11 -08:00
clean:
rm -f nuke
install: nuke
@prefix="$(PREFIX)"; \
if [[ ! $$prefix ]]; then \
read -p $$'\033[1mWhere do you want to install? (default: /usr/local) \033[0m' prefix; \
fi; \
if [[ ! $$prefix ]]; then \
prefix="/usr/local"; \
fi; \
mkdir -pv $$prefix/bin; \
cp -v nuke $$prefix/bin/