diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-01T10·31+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-01T10·31+0100 |
commit | f324b49ea19e606f84b89ecb499f0e961646cd50 (patch) | |
tree | fa11c86a31d72bed8d9cf1f816ff2372a0f08db4 /programs.mk | |
parent | 4271927c5be2c5b87ca83682d1f2bd71d5ce4a66 (diff) |
Change dependency file names from foo.dep to .foo.o.dep
Diffstat (limited to 'programs.mk')
-rw-r--r-- | programs.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/programs.mk b/programs.mk index c608a6f25aa4..0478e16d0bd6 100644 --- a/programs.mk +++ b/programs.mk @@ -53,10 +53,10 @@ define build-program = $$(foreach obj, $$($(1)_OBJS), $$(eval $$(obj): $$($(1)_COMMON_DEPS))) # Include .dep files, if they exist. - $(1)_DEPS := $$(addsuffix .dep, $$(basename $$(_srcs))) + $(1)_DEPS := $$(foreach fn, $$($(1)_OBJS), $$(call filename-to-dep, $$(fn))) -include $$($(1)_DEPS) programs_list += $$($(1)_PATH) - clean_files += $$($(1)_PATH) $$(_d)/*.o $$(_d)/*.dep $$($(1)_DEPS) $$($(1)_OBJS) + clean_files += $$($(1)_PATH) $$(_d)/*.o $$(_d)/.*.dep $$($(1)_DEPS) $$($(1)_OBJS) dist_files += $$(_srcs) endef |