Skip to content

Commit

Permalink
Preserve order of dependencies in tgt_rule
Browse files Browse the repository at this point in the history
  • Loading branch information
aostruszka committed Apr 16, 2013
1 parent 97e035f commit 4739467
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mk/skel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ $(2)_CMD =
endef

define tgt_rule
abs_deps := $$(filter /%,$$(DEPS_$(1)))
rel_deps := $$(filter-out /%,$$(DEPS_$(1)))
abs_deps += $$(addprefix $(OBJPATH)/,$$(rel_deps))
abs_deps := $$(foreach dep,$$(DEPS_$(1)),$$(if $$(filter /%,$$(dep)),$$(dep),$$(addprefix $(OBJPATH)/,$$(dep))))
-include $$(addsuffix .d,$$(basename $$(abs_deps)))
$(1): $$(abs_deps) $(if $(findstring $(OBJDIR),$(1)),| $(OBJPATH),)
$$(or $$(CMD_$(1)),$$(MAKECMD$$(suffix $$@)),$$(DEFAULT_MAKECMD))
Expand Down

0 comments on commit 4739467

Please sign in to comment.