From: Joerg Albert Date: Wed, 5 Aug 2009 18:23:43 +0000 (-0700) Subject: compat-2.6: Makefile: fixed test expressions for target install X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=817ee45bd8db6ce52c85397fa8b6f29acdd06ced;p=openwrt%2Fstaging%2Fblogic.git compat-2.6: Makefile: fixed test expressions for target install This removes the two errors of [ with target "install" [: 9: missing ] [: 9: missing ] and works with sh as well. Signed-off-by: Joerg Albert --- diff --git a/Makefile b/Makefile index 41a3c97f0905..ab97de0591a2 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ install-scripts: @install scripts/athload $(DESTDIR)/usr/sbin/ @install scripts/b43load $(DESTDIR)/usr/sbin/ @install scripts/iwl-load $(DESTDIR)/usr/sbin/ - @if [ ! -z $(MADWIFI) && -z "$(DESTDIR)" ]; then \ + @if [ ! -z "$(MADWIFI)" ] && [ -z "$(DESTDIR)" ]; then \ echo ;\ echo -n "Note: madwifi detected, we're going to disable it. " ;\ echo "If you would like to enable it later you can run:" ;\ @@ -87,7 +87,7 @@ install-scripts: echo Running athenable ath5k...;\ /usr/sbin/athenable ath5k ;\ fi - @if [ ! -z $(OLD_IWL) && -z "$(DESTDIR)" ]; then \ + @if [ ! -z "$(OLD_IWL)" ] && [ -z "$(DESTDIR)" ]; then \ echo ;\ echo -n "Note: iwl4965 detected, we're going to disable it. " ;\ echo "If you would like to enable it later you can run:" ;\