diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-29 08:46:48 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-29 08:46:48 -0600 |
commit | bd22a9cc04ad031bc3d472d7b9d61306f6247b4f (patch) | |
tree | 6b1c1d20db73ab6013607b737fa937fae584404c /common.top.mk | |
parent | 30e4649c2642351870914985be2b4f1e40bcd83f (diff) |
(rvs) `make dist` wasn't working
Diffstat (limited to 'common.top.mk')
-rw-r--r-- | common.top.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common.top.mk b/common.top.mk index 931bc84..a83abb6 100644 --- a/common.top.mk +++ b/common.top.mk @@ -29,8 +29,10 @@ endif objdir := $(call _noslash,$(dir $(lastword $(filter-out %.mk,$(MAKEFILE_LIST))))) srcdir := $(firstword $(call _relto,., $(topsrcdir)/$(call _relto,$(topobjdir),$(objdir)) ) .) +included_makefiles := $(included_makefiles) $(abspath $(objdir)/Makefile) + ## Set module name -module := $(firstword $(subst /,_,$(if $(call _is_subdir,.,$(objdir)),$(call _relto,.,$(objdir)),dep-$(call _relto,$(topobjdir),$(objdir)))) all) +module := $(subst /,_,$(if $(call _is_subdir,.,$(objdir)),$(firstword $(call _relto,.,$(objdir)) all),dep-$(firstword $(call _relto,$(topobjdir),$(objdir)) top))) ## Empty variables for use by the module subdirs = |