mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
Allow installation of the multicall binary
This commit is contained in:
parent
995d290847
commit
47896a6a69
2 changed files with 22 additions and 0 deletions
12
Makefile
12
Makefile
|
@ -198,9 +198,21 @@ install: $(addprefix build/,$(INSTALLEES))
|
||||||
install build/$$prog $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX)$$prog; \
|
install build/$$prog $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX)$$prog; \
|
||||||
done
|
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:
|
uninstall:
|
||||||
rm -f $(addprefix $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX),$(PROGS))
|
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
|
# Test under the busybox testsuite
|
||||||
build/busybox: build/uutils
|
build/busybox: build/uutils
|
||||||
rm -f build/busybox
|
rm -f build/busybox
|
||||||
|
|
10
README.md
10
README.md
|
@ -57,6 +57,11 @@ To install every program with a prefix:
|
||||||
make PROG_PREFIX=PREFIX_GOES_HERE install
|
make PROG_PREFIX=PREFIX_GOES_HERE install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To install the multicall binary:
|
||||||
|
```
|
||||||
|
make install-multicall
|
||||||
|
```
|
||||||
|
|
||||||
Uninstallation Instructions
|
Uninstallation Instructions
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
@ -70,6 +75,11 @@ To uninstall every program with a set prefix:
|
||||||
make PROG_PREFIX=PREFIX_GOES_HERE uninstall
|
make PROG_PREFIX=PREFIX_GOES_HERE uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To uninstall the multicall binary:
|
||||||
|
```
|
||||||
|
make uninstall-multicall
|
||||||
|
```
|
||||||
|
|
||||||
Test Instructions
|
Test Instructions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue