aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4e158b72..b50ea239 100644
--- a/Makefile
+++ b/Makefile
@@ -25,9 +25,18 @@ all: $(PROGRAMS)
#
# "The better to keep you on your toes, my dear".
#
-install: check
+install: check bin-dir
if test $< -nt $(PREFIX)/bin/sparse ; then install -v $< $(PREFIX)/bin/sparse ; fi
+bin-dir:
+ @if ! test -d $(PREFIX)/bin; then \
+ echo "No '$(PREFIX)/bin' directory to install in"; \
+ echo "Please create it and add it to your PATH"; \
+ exit 1; \
+ fi
+
+.PHONY: bin-dir
+
test-lexing: test-lexing.o $(LIB_FILE)
$(CC) $(LDFLAGS) -o $@ $< $(LIBS)