mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
Add some installation instructions
This commit is contained in:
parent
0bb67fe13a
commit
986d7cba79
2 changed files with 47 additions and 2 deletions
9
Makefile
9
Makefile
|
@ -67,6 +67,11 @@ EXES := \
|
||||||
CRATES := \
|
CRATES := \
|
||||||
$(sort $(filter $(EXES), $(filter-out md5sum true false, $(EXES))))
|
$(sort $(filter $(EXES), $(filter-out md5sum true false, $(EXES))))
|
||||||
|
|
||||||
|
INSTALL ?= $(EXES)
|
||||||
|
|
||||||
|
INSTALLEES := \
|
||||||
|
$(filter $(INSTALL),$(filter-out $(DONT_INSTALL),$(EXES)))
|
||||||
|
|
||||||
# Programs with usable tests
|
# Programs with usable tests
|
||||||
TEST_PROGS := \
|
TEST_PROGS := \
|
||||||
cat \
|
cat \
|
||||||
|
@ -151,9 +156,9 @@ install: build/uutils
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)$(BINDIR)/uutils
|
rm -f $(DESTDIR)$(PREFIX)$(BINDIR)/uutils
|
||||||
else
|
else
|
||||||
install: $(EXES_PATHS)
|
install: $(addprefix build/,$(INSTALLEES))
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)
|
mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)
|
||||||
for prog in $(EXES); do \
|
for prog in $(INSTALLEES); do \
|
||||||
install build/$$prog $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX)$$prog; \
|
install build/$$prog $(DESTDIR)$(PREFIX)$(BINDIR)/$(PROG_PREFIX)$$prog; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
40
README.md
40
README.md
|
@ -34,6 +34,45 @@ To build only a few of the available utilities:
|
||||||
make BUILD='UTILITY_1 UTILITY_2'
|
make BUILD='UTILITY_1 UTILITY_2'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To build the multicall binary (_i.e._ BusyBox-like binary):
|
||||||
|
```
|
||||||
|
make MULTICALL=1
|
||||||
|
```
|
||||||
|
|
||||||
|
Installation Instructions
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
To install all available utilities:
|
||||||
|
```
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
To install all but a few of the available utilities:
|
||||||
|
```
|
||||||
|
make DONT_INSTALL='UTILITY_1 UTILITY_2' install
|
||||||
|
```
|
||||||
|
|
||||||
|
To install only a few of the available utilities:
|
||||||
|
```
|
||||||
|
make INSTALL='UTILITY_1 UTILITY_2' install
|
||||||
|
```
|
||||||
|
|
||||||
|
To install the multicall binary:
|
||||||
|
```
|
||||||
|
make MULTICALL=1 install
|
||||||
|
```
|
||||||
|
|
||||||
|
To install every program (other than the multicall binary) with a prefix:
|
||||||
|
```
|
||||||
|
make PROG_PREFIX=PREFIX_GOES_HERE install
|
||||||
|
```
|
||||||
|
|
||||||
|
Uninstallation Instructions
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
Do the same command as in the Installation Instructions above, but replace
|
||||||
|
```install``` with ```uninstall```.
|
||||||
|
|
||||||
Test Instructions
|
Test Instructions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
@ -76,6 +115,7 @@ To do
|
||||||
- chown
|
- chown
|
||||||
- chroot
|
- chroot
|
||||||
- copy
|
- copy
|
||||||
|
- cp (not much done)
|
||||||
- cp-hash
|
- cp-hash
|
||||||
- csplit
|
- csplit
|
||||||
- cut
|
- cut
|
||||||
|
|
Loading…
Reference in a new issue