]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Some protection for cross arch package building
authorDale Weiler <killfieldengine@gmail.com>
Thu, 21 Mar 2013 04:47:46 +0000 (04:47 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 21 Mar 2013 04:47:46 +0000 (04:47 +0000)
distro/Makefile

index ab889556dfde755efe31c086085a08a8ccd41f78..5c4657977bde45ae36a8935512486f6af23af94f 100644 (file)
@@ -1,3 +1,8 @@
+UNAME := $(shell uname -m)
+ifneq ($(shell uname -m), x86_64)
+    $(error Cannot build packages without an x86_64 capable CPU)
+endif
+
 base:
        $(MAKE) -C deb/
        $(MAKE) -C deb/ CARCH=i686
@@ -9,3 +14,5 @@ base:
 clean:
        @rm -f *.deb
        @rm -f *.pkg.tar.xz
+
+all: base