]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Added generic directory Makefile.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 12 Jun 2007 16:05:00 +0000 (16:05 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 12 Jun 2007 16:05:00 +0000 (16:05 +0000)
darcs-hash:20070612160530-f2ef6-e87ae339e22c87af4c3bfab45c88c92dbcf37332.gz

leaf-makefile/Makefile [new file with mode: 0644]
leaf-makefile/README [new file with mode: 0644]

diff --git a/leaf-makefile/Makefile b/leaf-makefile/Makefile
new file mode 100644 (file)
index 0000000..f595272
--- /dev/null
@@ -0,0 +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 ) )
+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
+
diff --git a/leaf-makefile/README b/leaf-makefile/README
new file mode 100644 (file)
index 0000000..04c79fa
--- /dev/null
@@ -0,0 +1,3 @@
+This direcotry contains a generic directory makefile. This Makefile
+should be located in every directory where OMK is supposed to run.
+Together with Makefile.omk it makes the basics of OMK.