X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=distro%2Farchlinux%2Fthis%2FMakefile;h=91693a43d6900a7fd21e3b5ce96c9c074e1eb21f;hp=f22410369516b597669668391864175bd7690c44;hb=90533079c873b31458a272ed4b7ffc90c593e1f5;hpb=fe14d1b056935d726cca09b2c0f2607c831244ef diff --git a/distro/archlinux/this/Makefile b/distro/archlinux/this/Makefile index f224103..91693a4 100644 --- a/distro/archlinux/this/Makefile +++ b/distro/archlinux/this/Makefile @@ -5,8 +5,9 @@ MAJOR := $(shell sed -n -e '/GMQCC_VERSION_MAJOR/{s/.* .* //;p;q;}' $(HEADER)) MINOR := $(shell sed -n -e '/GMQCC_VERSION_MINOR/{s/.* .* //;p;q;}' $(HEADER)) PATCH := $(shell sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER)) PKGREL := 1 +SUFFIX ?= archlinux CARCH := $(shell uname -m) -PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)-$(CARCH) +PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)-$(CARCH)-$(SUFFIX) TARCOMP := -J PKG := $(PKGDIR).pkg.tar.xz PKGINFO := $(PKGDIR)/.PKGINFO @@ -15,11 +16,6 @@ CFLAGS := LIBC_DEPEND := glibc -ifneq (, $(findstring i686, $(CARCH))) - CFLAGS += -m32 - LDFLAGS += -m32 -endif - base: $(MAKE) -C $(BASEDIR) clean CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ @@ -45,8 +41,8 @@ base: @bsdtar -C $(PKGDIR) -czf $(PKGDIR)/.MTREE \ --format=mtree \ --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' \ - .PKGINFO usr/ - @bsdtar $(TARCOMP) -cvf $(PKG) -C $(PKGDIR)/ .PKGINFO .MTREE usr/ + .PKGINFO usr/ 2>&1 >/dev/null + @bsdtar $(TARCOMP) -cvf $(PKG) -C $(PKGDIR)/ .PKGINFO .MTREE usr/ 2>&1 >/dev/null @rm -rf $(PKGDIR) clean: