- Set INSTALL_OPTS according to the config.

This commit is contained in:
Bernhard Reutner-Fischer 2006-11-17 13:54:29 +00:00
parent 193bcf381e
commit 8bfd215fb2

View File

@ -9,6 +9,12 @@ busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h $(s
$(Q)-$(SHELL) $^ >$@
.PHONY: install
ifeq ($(CONFIG_INSTALL_APPLET_SYMLINKS),y)
INSTALL_OPTS:= --symlinks
endif
ifeq ($(CONFIG_INSTALL_APPLET_HARDLINKS),y)
INSTALL_OPTS:= --hardlinks
endif
install: $(srctree)/applets/install.sh busybox busybox.links
$(Q)DO_INSTALL_LIBS="$(strip $(LIBBUSYBOX_SONAME) $(DO_INSTALL_LIBS))" \
$(SHELL) $< $(CONFIG_PREFIX) $(INSTALL_OPTS)