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 | 099c6ced849aaa9a6063fd1e63a3db571be70dde (patch) | |
tree | b1cab07eacefceaeb72d5ca4d1a96dd0f26e07b8 /common.top.mk | |
parent | f50a0e73d77bfcfb8b458840b8b7a440cca9770c (diff) |
`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 = |