[CRIU] [PATCH 4/9] nmk: build.mk -- Make process depend on Makefile itself
Cyrill Gorcunov
gorcunov at gmail.com
Mon Mar 21 05:56:18 PDT 2016
On Mon, Mar 21, 2016 at 03:53:50PM +0300, Dmitry Safonov wrote:
> >-include $(call objectify,$(makefile))
> >+src-makefile := $(call objectify,$(makefile))
> >+include $(src-makefile)
> > ifneq ($(strip $(target)),)
> > target := $(sort $(call uniq,$(target)))
> >@@ -46,6 +47,16 @@ builtin-name := $(strip $(builtin-name))
> > ld_flags := $(strip $(LDFLAGS) $(ldflags-y))
> > #
> >+# $(obj) related rules.
> >+$(eval $(call gen-rule-o-from-c-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> >+$(eval $(call gen-rule-i-from-c-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> >+$(eval $(call gen-rule-s-from-c-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> >+$(eval $(call gen-rule-o-from-S-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> >+$(eval $(call gen-rule-d-from-c-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> >+$(eval $(call gen-rule-d-from-S-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> >+$(eval $(call gen-rule-i-from-S-by-name,$(obj)/%,$(obj)/%,$(src-makefile)))
> Hmm, why not pulled from rules.mk (or added $(src-makefile) there)?
> Where implicits expand:
> >$(eval $(call gen-rule-o-from-c-by-name,%,%))
> >$(eval $(call gen-rule-i-from-c-by-name,%,%))
these implicit rules actually redundant, I'll drop them out.
More information about the CRIU
mailing list