summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-06-29 18:06:09 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-29 18:06:09 -0600
commit53f16f2a6443ee4e93e2ee748576cf3d9ab8f8de (patch)
treed1847bcc6243672e0da7232a8a0d7c7259a91cc8
parent099c6ced849aaa9a6063fd1e63a3db571be70dde (diff)
Makefile: whoops, dist_files should go in srcdir, not objdir
-rw-r--r--common.bottom.mk5
1 files 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