]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Make variable for flexibility
authorDale Weiler <killfieldengine@gmail.com>
Thu, 21 Mar 2013 06:17:50 +0000 (06:17 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 21 Mar 2013 06:17:50 +0000 (06:17 +0000)
distro/archlinux/this/Makefile

index df94ff34526cbf6b4c0eacc5e368073e5623025b..bf5a3e86e7f9ca8842ee710e6078013d159fd685 100644 (file)
@@ -9,6 +9,7 @@ CARCH   := $(shell uname -m)
 PKGDIR  := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)-$(CARCH)
 PKG     := $(PKGDIR).pkg.tar.xz
 PKGINFO := $(PKGDIR)/.PKGINFO
+DESTDIR := distro/archlinux/this/$(PKGDIR)
 CFLAGS  :=
 
 
@@ -18,7 +19,7 @@ endif
 
 base:
        $(MAKE) -C $(BASEDIR) clean
-       $(MAKE) -C $(BASEDIR) OPTIONAL=$(CFLAGS) DESTDIR=distro/archlinux/this/$(PKGDIR) PREFIX=$(PREFIX) install
+       $(MAKE) -C $(BASEDIR) OPTIONAL=$(CFLAGS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
        @echo "pkgname = gmqcc" > $(PKGINFO)
        @echo "pkgver = $(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)" >> $(PKGINFO)
        @echo "pkgdesc = An Improved Quake C Compiler" >> $(PKGINFO)