mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
Makefile: don't symlink uutils
to itself
Fix error where uutils would be symlinked to itself, resulting in: > ln: 'uutils' and 'uutils' are the same file
This commit is contained in:
parent
f79467f5a1
commit
c34c2ea074
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -300,7 +300,8 @@ install: build
|
|||
mkdir -p $(INSTALLDIR_BIN)
|
||||
ifeq (${MULTICALL}, y)
|
||||
$(INSTALL) $(BUILDDIR)/uutils $(INSTALLDIR_BIN)/$(PROG_PREFIX)uutils
|
||||
$(foreach prog, $(INSTALLEES), cd $(INSTALLDIR_BIN) && ln -fs $(PROG_PREFIX)uutils $(PROG_PREFIX)$(prog);)
|
||||
$(foreach prog, $(filter-out uutils, $(INSTALLEES)), \
|
||||
cd $(INSTALLDIR_BIN) && ln -fs $(PROG_PREFIX)uutils $(PROG_PREFIX)$(prog);)
|
||||
else
|
||||
$(foreach prog, $(INSTALLEES), \
|
||||
$(INSTALL) $(PKG_BUILDDIR)/$(prog) $(INSTALLDIR_BIN)/$(PROG_PREFIX)$(prog);)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue