aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-06-10 16:52:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:51 -0700
commit33d6edbdc44d3cc088f59f6fd2440fd601d56e84 (patch)
treea41d1c86e1e1404f1ee94cd8088d16ca400ab4ec
parentfaf1db90d395f3b7bbe2b02fde0e5b1d98a4955a (diff)
downloadsparse-33d6edbdc44d3cc088f59f6fd2440fd601d56e84.tar.gz
sparse-33d6edbdc44d3cc088f59f6fd2440fd601d56e84.tar.xz
sparse-33d6edbdc44d3cc088f59f6fd2440fd601d56e84.zip
Install the kernel source checker as "sparse" in /usr/local/bin.
Calling it "check" is just too generic a name if we install it somewhere global.
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 51692fb..4be9240 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)