aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 06a9ca1..f6f512d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,14 @@
+PREFIX = /usr/local
+
+CFLAGS = -Werror -Wall
LDFLAGS = -lreadline -ltermcap
repl: repl.c
+
+install: repl
+ cp repl ${PREFIX}/bin/repl
+ cp repl.1 ${PREFIX}/man/man1/repl.1
+
+uninstall:
+ rm ${PREFIX}/bin/repl
+ rm ${PREFIX}/man/man1/repl.1