From 4f2837b0d46315b6a5bd88861a7e7a7c4b5d3403 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 12 May 2009 14:49:48 +0200 Subject: Makefile: Install/uninstall $BINDIR --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 6e4ba24..ac8f7c5 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,11 @@ all: $(TARGETS) install: @echo "Installing the following scripts to $(BINDIR)" @echo " $(TARGETS)" + @mkdir -p $(BINDIR) @install -m755 -t $(BINDIR) $(TARGETS) uninstall: @echo "Uninstalling the following scripts from $(BINDIR):" @echo " $(TARGETS)" + @rmdir --ignore-fail-on-non-empty $(BINDIR) @for s in $(TARGETS); do rm -f "$(BINDIR)/$${s}"; done -- cgit v1.2.3-54-g00ecf