]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Name of included Makefile.omk can by changed via MAKEFILE_OMK variable.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 26 Jul 2007 12:21:00 +0000 (12:21 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 26 Jul 2007 12:21:00 +0000 (12:21 +0000)
darcs-hash:20070726122103-f2ef6-0741166b2e6d93f385ca273d27745a9ea98d3649.gz

snippets/base
snippets/sources-list

index 4a96af4122f3d10849d3393fbd2f97becbe716b8..afba9a686d218359578ed59020f625fb2594c0e5 100644 (file)
@@ -104,15 +104,16 @@ else
   QUIET_CMD_ECHO = echo
 endif
 
+MAKEFILE_OMK=Makefile.omk
 # All subdirectories (even linked ones) containing Makefile.omk
 # Usage in Makefile.omk: SUBDIRS = $(ALL_OMK_SUBDIRS)
-ALL_OMK_SUBDIRS = $(patsubst %/Makefile.omk,%,$(patsubst $(SOURCES_DIR)/%,%,$(wildcard $(SOURCES_DIR)/*/Makefile.omk)))
+ALL_OMK_SUBDIRS = $(patsubst %/$(MAKEFILE_OMK),%,$(patsubst $(SOURCES_DIR)/%,%,$(wildcard $(SOURCES_DIR)/*/$(MAKEFILE_OMK))))
 
 # ===================================================================
 # We have set up all important variables, so we can check and include
 # real OCERA style Makefile.omk now
 ifndef OMK_INCLUDED
-include $(SOURCES_DIR)/Makefile.omk
+include $(SOURCES_DIR)/$(MAKEFILE_OMK)
 OMK_INCLUDED := 1
 endif
 
index ced8d2a0c86431bcc71b95fa184d4efe3968cd2d..2d222dd72c4cd032c03364416a62505898e8534f 100644 (file)
@@ -24,7 +24,7 @@ ifeq ($(NEED_SOURCES_LIST),y) # avoid execution of find command bellow if it is
 .PHONY: sources-list
 sources-list: $(SOURCES_LIST)
 
-$(SOURCES_LIST): $(CONFIG_FILE) $(CONFIG_FILE)-default $(shell find -name Makefile.omk)
+$(SOURCES_LIST): $(CONFIG_FILE) $(CONFIG_FILE)-default $(shell find -name $(MAKEFILE_OMK))
        @echo -n "" > "$(SOURCES_LIST).tmp"
        @$(MAKE) --no-print-directory sources-list-pass
        @echo "# Automatically generated list of files in '$(RELATIVE_DIR)' that are used during OMK compilation" > "$(SOURCES_LIST).tmp2"