]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/arm/mach-lpc21xx/tools/lpc21isp/Makefile
lpc21isp is now compiled by OMK.
[sysless.git] / arch / arm / mach-lpc21xx / tools / lpc21isp / Makefile
index e01bc38cb585e58793effe17fd14a3c51b4751a6..f595272447ee336c2773b8736d60ee6e88cf5189 100644 (file)
@@ -1,13 +1,14 @@
-.PHONY: all
+# Generic directory or leaf node makefile for OCERA make framework
 
-ifeq ($(SOURCES_DIR),)
-all: lpc21isp
-else
-# if called from OMK
-all:
-       $(MAKE) -C $(SOURCES_DIR) SOURCES_DIR='' all
+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 ) )
+endif
+
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+       @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
+else   
+include $(MAKERULES_DIR)/Makefile.rules
 endif
 
-# if called from OMK
-binary-pass: all
-check-dir include-pass library-pass utils-pass default-config-pass: