diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-17 02:00:48 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-17 02:05:50 -0500 |
commit | f4b4df101e4e3449494d65100ef2bab7d0bd46dd (patch) | |
tree | ef1d04ae5318a12014ef8afe5af40f2a244d1946 /build-aux | |
parent | 1ff424c47193173b24d997293f8b0b0c4efcdd48 (diff) |
Fix `make dist`.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/Makefile.head.mk | 2 | ||||
-rw-r--r-- | build-aux/Makefile.once.head/00-gitfiles.mk | 5 | ||||
-rw-r--r-- | build-aux/Makefile.once.tail/00-dist.mk | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/build-aux/Makefile.head.mk b/build-aux/Makefile.head.mk index 33ef9c1..8299bc7 100644 --- a/build-aux/Makefile.head.mk +++ b/build-aux/Makefile.head.mk @@ -100,7 +100,7 @@ endif # _at.NO_ONCE outdir := $(call _at.path,$(dir $(lastword $(_at.MAKEFILE_LIST)))) ifeq ($(call _at.is_subdir,$(topoutdir),$(outdir)),) -$(error Autothing: not a subdirectory of topoutdir=«$(topoutdir)»: «$(outdir)») +$(error Autothing: not a subdirectory of topoutdir=$(topoutdir): $(outdir)) endif # Don't use at.out2src because we *know* that $(outdir) is inside $(topoutdir), diff --git a/build-aux/Makefile.once.head/00-gitfiles.mk b/build-aux/Makefile.once.head/00-gitfiles.mk index dbb4ae9..f1474cf 100644 --- a/build-aux/Makefile.once.head/00-gitfiles.mk +++ b/build-aux/Makefile.once.head/00-gitfiles.mk @@ -65,10 +65,11 @@ _gitfiles.all = ifneq ($(wildcard $(topsrcdir)/.git),) $(topsrcdir)/$(gitfiles.file): _gitfiles.FORCE - @(cd $(@D) && git ls-files -z) | sed -z -e 's/\$$/\$$$$/g' -e 's/\n/$$(at.nl)/g' | xargs -r0 printf '_gitfiles.all+=%s\n' | $(WRITE_IFCHANGED) $@ + @(cd $(@D) && git ls-files --recurse-submodules -z) | sed -z -e 's/\$$/\$$$$/g' -e 's/\n/$$(at.nl)/g' | xargs -r0 printf '_gitfiles.all+=%s\n' | $(WRITE_IFCHANGED) $@ .PHONY: _gitfiles.FORCE endif _gitfiles.dir = $(call at.relto,$(topsrcdir),$(srcdir)) -_gitfiles.dir.all = $(patsubst $(_gitfiles.dir)/%,%,$(filter $(_gitfiles.dir)/%,$(_gitfiles.all))) +_gitfiles.pat = $(patsubst ./%,%,$(_gitfiles.dir)/%) +_gitfiles.dir.all = $(patsubst $(_gitfiles.pat),%,$(filter $(_gitfiles.pat),$(_gitfiles.all))) _gitfiles.dir.src = $(filter-out $(addsuffix /%,$(nested.subdirs)),$(_gitfiles.dir.all)) diff --git a/build-aux/Makefile.once.tail/00-dist.mk b/build-aux/Makefile.once.tail/00-dist.mk index a890d9d..3bd38da 100644 --- a/build-aux/Makefile.once.tail/00-dist.mk +++ b/build-aux/Makefile.once.tail/00-dist.mk @@ -13,6 +13,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# NB: intentionally resolve symlinks (tack on the -P flag to `cp` to +# not resolve them). The GNU Coding Standards say to avoid symlinks +# in tarballs. _dist.copyfile = $(MKDIR_P) $(dir $2) && $(CP) -T $1 $2 _dist.addfile = $(call _dist.copyfile,$3,$2/$(call at.relto,$1,$3)) $(topoutdir)/$(dist.pkgname)-$(dist.version): $(_dist.files) |