aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 51692fbe..4be9240c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ CC=gcc
CFLAGS=-g -Wall
AR=ar
+PREFIX=/usr/local
PROGRAMS=test-lexing test-parsing obfuscate check
LIB_H= token.h parse.h lib.h symbol.h scope.h expression.h target.h
@@ -13,6 +14,14 @@ LIB_FILE= sparse.a
all: $(PROGRAMS)
+#
+# Install the 'check' binary as 'sparse', just to confuse people.
+#
+# "The better to keep you on your toes, my dear".
+#
+install: check
+ install -C check $(PREFIX)/bin/sparse
+
test-lexing: test-lexing.o $(LIB_FILE)
gcc -o $@ $< $(LIB_FILE)