1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #329 from Arcterus/multicall-install

Allow installation of the multicall binary
This commit is contained in:
Heather 2014-07-01 14:19:40 +04:00
commit 417f554ff6
2 changed files with 22 additions and 0 deletions

View file

@ -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

View file

@ -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
-----------------