diff options
author | Samuel Thibault <sthibault@debian.org> | 2014-09-15 12:51:18 +0000 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2014-09-15 12:51:18 +0000 |
commit | c52c5236d45828559453863ba2a72d94d8b68d55 (patch) | |
tree | f43a876707b26d702bc72a20c480c79601881548 /build/Makefile | |
parent | 0172b2dca600e7b0fc3253dceeba0c32e04a4d27 (diff) | |
download | installation-guide-c52c5236d45828559453863ba2a72d94d8b68d55.zip |
Add arch-parallel build support
Diffstat (limited to 'build/Makefile')
-rw-r--r-- | build/Makefile | 9 |
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 ; \ |