summaryrefslogtreecommitdiff
path: root/Make-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Make-dist')
-rw-r--r--Make-dist9
1 files changed, 8 insertions, 1 deletions
diff --git a/Make-dist b/Make-dist
index fa6a0f8d9d..7f94c919a9 100644
--- a/Make-dist
+++ b/Make-dist
@@ -125,6 +125,8 @@ endif
$(sysdep-Subdir-files)
foo:=$(shell echo '+sysdep-dist=$(+sysdep-dist)' >&2)
+subdirs := $(filter-out crypt,$(subdirs))
+
+sysdep-tsrcs := $(wildcard $(foreach file,Makefile Implies,\
$(addsuffix /$(file),$(sysdep_dirs)))) \
$(+sysdep-dist)
@@ -134,7 +136,12 @@ foo:=$(shell echo '+sysdep-dist=$(+sysdep-dist)' >&2)
.PHONY: dist
# N.B.: The order in which these are done matters (so don't use -j).
MAKEFLAGS = -j1 # I wonder if that works.
-dist: dist.tar subdir_dist de-.. dist.tar.Z
+dist: dist.tar subdir_dist de-.. dist.tar.Z crypt.tar.Z
+
+crypt.tar.Z: crypt/crypt.tar.Z
+ ln $< $@
+crypt/%:
+ $(MAKE) -C $(@D) $(@F)
dist.tar: $(tardir) $(+tsrcs)
tar ch$(verbose)f $@ $(addprefix $(tardir)/,$(filter-out $(tardir),$^))