aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 13d0f52a8..71b82d0c6 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,6 @@ book: validate profile-html
true; \
/bin/bash obfuscate.sh $$filename; \
sed -e "s@text/html@application/xhtml+xml@g" \
- -e "s/\xa9/\©/ " \
-i $$filename; \
done;
@@ -209,5 +208,14 @@ dump-commands: validate
all: book nochunks pdf dump-commands
-.PHONY : all book dump-commands nochunks pdf profile-html tmpdir validate md5sums wget-list version
+dist:
+ $(Q)DIST=/tmp/LFS-RELEASE ./git-version.sh $(REV)
+ $(Q)rm -f lfs-$$(</tmp/LFS-RELEASE).tar.xz
+ $(Q)tar cJf lfs-$$(</tmp/LFS-RELEASE).tar.xz \
+ $(shell git ls-tree HEAD . --name-only) version.ent \
+ -C /tmp LFS-RELEASE \
+ --transform "s,^,lfs-$$(</tmp/LFS-RELEASE)/,"
+ $(Q)echo "Generated XML tarball lfs-$$(</tmp/LFS-RELEASE).tar.xz"
+
+.PHONY : all book dump-commands nochunks pdf profile-html tmpdir validate md5sums wget-list version dist