diff --git a/Makefile b/Makefile index 2dcd514..920fe67 100644 --- a/Makefile +++ b/Makefile @@ -40,18 +40,12 @@ LIBS=$(LIB_FILE) all: $(PROGRAMS) -install: $(INST_PROGRAMS) bin-dir +install: $(INST_PROGRAMS) + install -d $(BINDIR) for f in $(INST_PROGRAMS); do \ install -v $$f $(BINDIR)/$$f || exit 1; \ done -bin-dir: - @if ! test -d $(BINDIR); then \ - echo "No '$(BINDIR)' 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 $(LIBS)