From d30874268fed814a46262f5e3592bfcf76643aea Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 29 Jun 2015 18:06:09 -0600 Subject: (rvs) Makefile: whoops, dist_files should go in srcdir, not objdir --- common.bottom.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common.bottom.mk b/common.bottom.mk index 016e093..2d56297 100644 --- a/common.bottom.mk +++ b/common.bottom.mk @@ -28,7 +28,7 @@ $(module)_sys_files := $(addprefix $(DESTDIR)/,$(sys_files)) $(module)_clean_files := $(addprefix $(objdir)/,$(clean_files)) $(module)_slow_files := $(addprefix $(objdir)/,$(slow_files)) $(module)_conf_files := $(addprefix $(objdir)/,$(conf_files)) -$(module)_dist_files := $(addprefix $(objdir)/,$(dist_files)) +$(module)_dist_files := $(addprefix $(srcdir)/,$(dist_files)) # And add them to the $(parent)_*_files variables (if applicable) ifneq ($(parent),) @@ -110,8 +110,7 @@ _addfile = $(call _copyfile,$3,$2/$(call _relto,$1,$3)) $(topobjdir)/$(PACKAGE)-$(VERSION): $(all_src_files) $(dep_src_files) $(all_dist_files) $(dep_dist_files) $(RM) -r $@ $(MKDIR) $(@D)/tmp.$(@F).$$$$ && \ - $(foreach f,$(all_src_files) $(dep_src_files) ,$(call _addfile,$(topsrcdir),$(@D)/tmp.$(@F).$$$$,$f) &&) \ - $(foreach f,$(all_dist_files) $(dep_dist_files),$(call _addfile,$(topobjdir),$(@D)/tmp.$(@F).$$$$,$f) &&) \ + $(foreach f,$^,$(call _addfile,$(topsrcdir),$(@D)/tmp.$(@F).$$$$,$f) &&) \ $(MV) $(@D)/tmp.$(@F).$$$$ $@ || $(RM) -r $(@D)/tmp.$(@F).$$$$ include $(topsrcdir)/common.once.mk -- cgit v1.2.3-54-g00ecf