update Makefile

This commit is contained in:
Solomon 2020-06-24 10:27:54 -04:00 committed by GitHub
parent 71f38dfec4
commit 462ed56d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,14 @@
CC="cc"
INSTALL_DIR="/usr/local/bin/"
OUT="viewbin"
all: build ;
build: viewbin.c
cc $^ -o viewbin
cc $^ -o "$OUT"
install:
sudo cp viewbin /usr/local/bin/
sudo cp viewbin "$INSTALL_DIR"
uninstall:
sudo rm "$INSTALL_DIR$OUT"