X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sysless.git/blobdiff_plain/f42a80570b18412fb5abc07291ba7be16c523067..HEAD:/arch/arm/mach-lpc21xx/tools/tolpc/Makefile diff --git a/arch/arm/mach-lpc21xx/tools/tolpc/Makefile b/arch/arm/mach-lpc21xx/tools/tolpc/Makefile index f595272..76b56fd 100644 --- a/arch/arm/mach-lpc21xx/tools/tolpc/Makefile +++ b/arch/arm/mach-lpc21xx/tools/tolpc/Makefile @@ -1,14 +1,14 @@ # Generic directory or leaf node makefile for OCERA make framework ifndef MAKERULES_DIR -MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" == `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) ) +MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) ) endif ifeq ($(MAKERULES_DIR),) all : default .DEFAULT:: - @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n" -else + @echo -e "\nThe Makefile.rules has not been found in this or parent directory\n" +else include $(MAKERULES_DIR)/Makefile.rules endif