aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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