Some protection for cross arch package building
[xonotic/gmqcc.git] / distro / Makefile
1 UNAME := $(shell uname -m)
2 ifneq ($(shell uname -m), x86_64)
3     $(error Cannot build packages without an x86_64 capable CPU)
4 endif
5
6 base:
7         $(MAKE) -C deb/
8         $(MAKE) -C deb/ CARCH=i686
9         $(MAKE) -C archlinux/this/
10         $(MAKE) -C archlinux/this/ CARCH=i686
11         @mv deb/*.deb ./
12         @mv archlinux/this/*pkg.tar.xz ./
13
14 clean:
15         @rm -f *.deb
16         @rm -f *.pkg.tar.xz
17
18 all: base