From 47896a6a6988165345f03b1c70d606af9ad4d5d2 Mon Sep 17 00:00:00 2001 From: Arcterus Date: Tue, 1 Jul 2014 01:07:16 -0700 Subject: [PATCH] Allow installation of the multicall binary --- Makefile | 12 ++++++++++++ README.md | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/Makefile b/Makefile index f82caf5af..e6e5bec4d 100644 --- a/Makefile +++ b/Makefile @@ -198,9 +198,21 @@ install: $(addprefix build/,$(INSTALLEES)) install build/$$prog $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX)$$prog; \ done +# TODO: figure out if there is way for prefixes to work with the symlinks +install-multicall: build/uutils + mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR) + install build/uutils $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX)uutils + cd $(DESTDIR)$(PREFIX)$(BINDIR) + for prog in $(INSTALLEES); do \ + ln -s $(PROG_PREFIX)uutils $$prog; \ + done + uninstall: rm -f $(addprefix $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX),$(PROGS)) +uninstall-multicall: + rm -f $(addprefix $(DESTDIR)$(PREFIX)$(BINDIR)/,$(PROGS) $(PROG_PREFIX)uutils) + # Test under the busybox testsuite build/busybox: build/uutils rm -f build/busybox diff --git a/README.md b/README.md index 1568ee924..f1b0bf028 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,11 @@ To install every program with a prefix: make PROG_PREFIX=PREFIX_GOES_HERE install ``` +To install the multicall binary: +``` +make install-multicall +``` + Uninstallation Instructions --------------------------- @@ -70,6 +75,11 @@ To uninstall every program with a set prefix: make PROG_PREFIX=PREFIX_GOES_HERE uninstall ``` +To uninstall the multicall binary: +``` +make uninstall-multicall +``` + Test Instructions -----------------