aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-01-04 19:57:33 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:27:53 +0200
commit7c986ba5b0ab45485b61fe56ba73abe1fa2507ed (patch)
tree1fe9dbee88283e3360edad05c2ba4ccf47c2078a /Makefile
parent5c0479ac14755429bc65c47eafec3e2bfb72431f (diff)
Multiarch support.
Run 'ARCH=amd64 make' to preseed an AMD64 ISO image, etc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fbb39b4..910689b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,11 @@
-ARCH ?= $(shell uname -m | sed -e 's/^x86_64$$/amd64/' -e 's/^i686$$/i386/')
+ARCH ?= $(shell uname -m)
+ifeq (${ARCH}, x86_64)
+ARCH = amd64
+endif
+ifeq (${ARCH}, i686)
+ARCH = i386
+endif
+
VERSION = 7.3.0
ISOIMG = debian-${VERSION}-${ARCH}-netinst.iso