summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 16:27:09 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 16:27:09 (EDT)
commitd479bce043ca2d1d76099b37d180adb8add5160c (patch)
treefee15d3a0247376e27ddb62da2fbbdca8a89e698
parent96522774285e75d4b607a674463d5ad4ed51b2ba (diff)
Makefile.am: Distribute 3rd-party submodules
-rw-r--r--3rdparty/local.mk1
-rw-r--r--Makefile.am15
2 files changed, 16 insertions, 0 deletions
diff --git a/3rdparty/local.mk b/3rdparty/local.mk
index f25b44b..6bb83c2 100644
--- a/3rdparty/local.mk
+++ b/3rdparty/local.mk
@@ -1,4 +1,5 @@
pkglibexecdir = $(libexecdir)/$(PACKAGE)
+3rdparty_dirs = usign
if EMBEDDED_USIGN
pkglibexec_SCRIPTS = 3rdparty/usign/usign$(EXEEXT)
3rdparty/usign/usign$(EXEEXT):
diff --git a/Makefile.am b/Makefile.am
index 0db770f..51d2603 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -129,13 +129,28 @@ really-clean: distclean
$(srcdir)/ChangeLog
dist-hook:
+ set -e; \
if [ -d '$(srcdir)/.git' ]; then \
printf 'Generated file. Do not edit.\n\n' \
>'$(distdir)/ChangeLog~'; \
GIT_DIR='$(srcdir)/.git' git log --stat --color=never \
>>'$(distdir)/ChangeLog~'; \
mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \
+ $(MKDIR_P) '$(distdir)/3rdparty/'; \
+ >'$(distdir)/3rdparty/Manifest'; \
+ for d in $(3rdparty_dirs); do \
+ for f in $$(GIT_DIR="$(srcdir)/3rdparty/$${d}/.git" \
+ git ls-files); do \
+ printf '3rdparty/%s/%s\n' "$${d}" "$${f}" \
+ >>'$(distdir)/3rdparty/Manifest'; \
+ done; \
+ done; \
fi
+ set -e; \
+ for f in $$(cat '$(distdir)/3rdparty/Manifest'); do \
+ $(MKDIR_P) "$(distdir)/$$(dirname "$${f}")"; \
+ cp -p "$${f}" "$(distdir)/$${f}"; \
+ done
release:
sed "s/^Released: ????-??-??\$$/Released: $$(date '+%Y-%m-%d')/" \