summaryrefslogtreecommitdiff
path: root/build/Makefile
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2014-09-15 12:51:18 +0000
committerSamuel Thibault <sthibault@debian.org>2014-09-15 12:51:18 +0000
commitc52c5236d45828559453863ba2a72d94d8b68d55 (patch)
treef43a876707b26d702bc72a20c480c79601881548 /build/Makefile
parent0172b2dca600e7b0fc3253dceeba0c32e04a4d27 (diff)
downloadinstallation-guide-c52c5236d45828559453863ba2a72d94d8b68d55.zip
Add arch-parallel build support
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/Makefile b/build/Makefile
index c9933924e..6377afc7b 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -9,6 +9,7 @@ $(TARGETS): %:
lang=$${target%.*} ; \
lang_id="$$(echo $$lang | tr A-Z a-z | sed "s/_/-/")" ; \
arch=$${target#*.} ; \
+ eval arch_destination=$$destination ; \
echo "Architecture: $$arch" ; \
if [ -n "$$noarchdir" ]; then \
destsuffix="$$lang" ; \
@@ -22,16 +23,16 @@ $(TARGETS): %:
export destdir=build.out.$$lang.$$arch ; \
export tempdir=build.tmp.$$lang.$$arch ; \
./buildone.sh "$$arch" "$$lang" "$$formats" ; \
- mkdir -p "$$destination/$$destsuffix" ; \
+ mkdir -p "$$arch_destination/$$destsuffix" ; \
for format in $$formats; do \
if [ "$$format" = html ]; then \
- mv ./$$destdir/html/* "$$destination/$$destsuffix" ; \
+ mv ./$$destdir/html/* "$$arch_destination/$$destsuffix" ; \
else \
# Do not fail because of missing PDF support for some languages \
if [ -n "$$web" ] ; then \
- mv ./$$destdir/install.$$lang.$$format "$$destination/$$destsuffix/install.$$format.$$lang_id" 2>/dev/null || true ; \
+ mv ./$$destdir/install.$$lang.$$format "$$arch_destination/$$destsuffix/install.$$format.$$lang_id" 2>/dev/null || true ; \
else \
- mv ./$$destdir/install.$$lang.$$format "$$destination/$$destsuffix" 2>/dev/null || true ; \
+ mv ./$$destdir/install.$$lang.$$format "$$arch_destination/$$destsuffix" 2>/dev/null || true ; \
fi ; \
fi ; \
done ; \