]> rtime.felk.cvut.cz Git - omk.git/blobdiff - snippets/base.omk
NuttX: the adapt to new implementation of ROMFS mounting at /etc
[omk.git] / snippets / base.omk
index 3b811ec776c2b88ba175a6cd7e7af0f960aeb71e..bd029e65191e125b73e6cdb96b4464401d8a2cb1 100644 (file)
@@ -1,7 +1,8 @@
 #  Makefile.rules - OCERA make framework common project rules -*- makefile-gmake -*-
 #
 #  (C) Copyright 2003, 2006, 2007, 2008, 2009  by Pavel Pisa - OCERA team member
-#  (C) Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 by Michal Sojka - Czech Technical University, FEE, DCE
+#  (C) Copyright 2009, 2010, 2011, 2013, 2015, 2016, 2017, 2019 by Pavel Pisa - PiKRON.com
+#  (C) Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013, 2015 by Michal Sojka - Czech Technical University, FEE, DCE
 #
 #  Homepage: http://rtime.felk.cvut.cz/omk/
 #  Version:  @git-describe@
@@ -260,15 +261,17 @@ $(pass):
 $(pass)-submakes:
        @true                   # Do not emit "nothing to be done" messages
 
-ifneq ($(4)$($(pass)_HOOKS),)
+ifneq ($(4)$($(pass)_HOOKS)$($(pass)_REQUIRED),)
 $(pass)-submakes: $(pass)-this-dir
 $(pass)-this-dir: $(foreach subdir,$(SUBDIRS),$(pass)-$(subdir)-subdir)
        +@echo "make[omk]: $(pass) in $(RELATIVE_DIR)"
        @$(call mkdir_def,$(2))
        +@$(MAKE) --no-builtin-rules $(NO_PRINT_DIRECTORY) SOURCES_DIR=$(SOURCES_DIR) RELATIVE_DIR=$(RELATIVE_DIR) -C $(2) \
                -f $(SOURCESDIR_MAKEFILE) $(3) $(check-target) $(1:%=%-local)
+ifneq ($(pass),clean)
 $(pass)-local: $($(pass)_HOOKS)
 endif
+endif
 endef
 
 # =======================