aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-28 23:46:52 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-28 23:46:52 -0400
commit67fc24e800180b83398724d65821aa37268d3bd7 (patch)
tree836b71321cf19cbac0aeb96cb7c468fe7bb7d102 /Makefile
parent25e8bb52e091c4c546502546b23c932e4d59cddb (diff)
added uninstall target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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