mirror of
https://github.com/uutils/coreutils
synced 2024-07-21 09:54:42 +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
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…
Reference in a new issue