23 lines
441 B
Makefile
23 lines
441 B
Makefile
|
|
PREFIX=
|
|
|
|
all: nuke
|
|
|
|
nuke: *.h *.c
|
|
cc nuke.c -lncurses -g -o nuke
|
|
|
|
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 $$prefix/share/man/man1 \
|
|
&& cp -v nuke $$prefix/bin/ \
|
|
&& cp -v doc/nuke.1 $$prefix/share/man/man1/
|