From 462ed56d8c7085553e69af3cc8c854a223d2019c Mon Sep 17 00:00:00 2001 From: Solomon <56119766+PoetryInCode@users.noreply.github.com> Date: Wed, 24 Jun 2020 10:27:54 -0400 Subject: [PATCH] update Makefile --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e6442c7..4899b27 100644 --- a/Makefile +++ b/Makefile @@ -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"