From 67fc24e800180b83398724d65821aa37268d3bd7 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 23:46:52 -0400
Subject: added uninstall target
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2b9f122..4c0a874 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
CC = c99
CFLAGS = -O3 -Wall -pedantic
OBJS = badroff.o buf.o ll.o sb.o
+BIN = /usr/local/bin
phrase-circuit.txt: badroff phrase-circuit.src
./badroff phrase-circuit.src > phrase-circuit.txt
badroff: $(OBJS)
@@ -12,4 +13,6 @@ sb.o: sb.c sb.h
clean:
rm -f badroff $(OBJS) phrase-circuit.txt
install: badroff
- cp -f badroff /usr/local/bin/badroff
+ cp -f badroff $(BIN)/badroff
+uninstall:
+ rm -f $(BIN)/badroff
--
cgit