summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@sinet-laptop.(none)>2009-05-12 14:49:48 +0200
committerTobias Klauser <tklauser@sinet-laptop.(none)>2009-05-12 14:49:48 +0200
commit4f2837b0d46315b6a5bd88861a7e7a7c4b5d3403 (patch)
tree6cf379d8b785ec4eff69d2ef9db0557bf6fda514
parent3bd9a200855a29d252672b8de6b6d2fe67873a63 (diff)
Makefile: Install/uninstall $BINDIR
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
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