diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-07 10:21:22 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:32 -0700 |
| commit | d3720ccc2302643c46f1a9b758fe2d03eb472b46 (patch) | |
| tree | 591cdee97b33c9caef739b427d25f16affa69ee7 /Makefile | |
| parent | 0f294b33a6c6f0052ff45f366eea49f56e36bc33 (diff) | |
| download | sparse-dev-d3720ccc2302643c46f1a9b758fe2d03eb472b46.tar.gz | |
Make 'make install' check the target install directory.
Instead of just silently creating it, make the thing tell
the user to create it and add the directory to the PATH.
Andrew didn't even _have_ a ~/bin. He may not be the only
person with that strange deficiency.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) |
