Commit 61f66b08 authored by Anton Midyukov's avatar Anton Midyukov

Fixed conditions with variable BRANCH

This allows you to reset the BRANCH variable by specifying the 'BRANCH=' argument on the command line.
parent 86349d9d
### various mixins with their origin ### various mixins with their origin
# for stable branch base kits # for stable branch base kits
ifdef BRANCH ifneq (,$(BRANCH))
STARTERKIT := mixin/starterkit STARTERKIT := mixin/starterkit
mixin/starterkit: use/browser/firefox/esr mixin/starterkit: use/browser/firefox/esr
@$(call set,BRANDING,alt-starterkit) @$(call set,BRANDING,alt-starterkit)
......
...@@ -8,7 +8,7 @@ distro/.regular-bare: distro/.base use/kernel/net use/docs/license \ ...@@ -8,7 +8,7 @@ distro/.regular-bare: distro/.base use/kernel/net use/docs/license \
use/stage2/rtc use/stage2/sbc use/stage2/scsi use/stage2/usb \ use/stage2/rtc use/stage2/sbc use/stage2/scsi use/stage2/usb \
$(STARTERKIT) $(STARTERKIT)
@$(call try,SAVE_PROFILE,yes) @$(call try,SAVE_PROFILE,yes)
ifndef BRANCH ifeq (,$(BRANCH))
ifeq (,$(filter-out i586 x86_64,$(ARCH))) ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call set,BOOTLOADER,grubpcboot) @$(call set,BOOTLOADER,grubpcboot)
endif endif
...@@ -138,7 +138,7 @@ distro/regular-gnustep-systemd: distro/.regular-wm +systemd \ ...@@ -138,7 +138,7 @@ distro/regular-gnustep-systemd: distro/.regular-wm +systemd \
mixin/regular-wmaker mixin/regular-gnustep; @: mixin/regular-wmaker mixin/regular-gnustep; @:
distro/regular-xfce: distro/.regular-gtk mixin/regular-xfce; @: distro/regular-xfce: distro/.regular-gtk mixin/regular-xfce; @:
ifndef BRANCH ifeq (,$(BRANCH))
ifeq (,$(filter-out i586 x86_64,$(ARCH))) ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call set,KFLAVOURS,std-def un-def) @$(call set,KFLAVOURS,std-def un-def)
endif endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# NB: REPORT doesn't work here, it's somewhat special # NB: REPORT doesn't work here, it's somewhat special
# where to look for apt.conf; system one used by default # where to look for apt.conf; system one used by default
ifdef BRANCH ifneq (,$(BRANCH))
APTCONF = ~/apt/apt.conf.$(BRANCH).$(ARCH) APTCONF = ~/apt/apt.conf.$(BRANCH).$(ARCH)
else else
APTCONF = ~/apt/apt.conf.sisyphus.$(ARCH) APTCONF = ~/apt/apt.conf.sisyphus.$(ARCH)
......
...@@ -17,7 +17,7 @@ endif ...@@ -17,7 +17,7 @@ endif
IMAGE_CONF := $(firstword $(subst ., ,$(IMAGE_TARGET)))# ve/generic IMAGE_CONF := $(firstword $(subst ., ,$(IMAGE_TARGET)))# ve/generic
IMAGE_CLASS := $(firstword $(subst /, ,$(IMAGE_TARGET)))# ve IMAGE_CLASS := $(firstword $(subst /, ,$(IMAGE_TARGET)))# ve
IMAGE_FILE := $(lastword $(subst /, ,$(IMAGE_TARGET)))# generic.tar.gz IMAGE_FILE := $(lastword $(subst /, ,$(IMAGE_TARGET)))# generic.tar.gz
ifdef BRANCH ifneq (,$(BRANCH))
IMAGE_FILE := $(subst regular,alt-$(BRANCH),$(IMAGE_FILE)) IMAGE_FILE := $(subst regular,alt-$(BRANCH),$(IMAGE_FILE))
endif endif
IMAGE_NAME := $(firstword $(subst ., ,$(IMAGE_FILE)))# generic IMAGE_NAME := $(firstword $(subst ., ,$(IMAGE_FILE)))# generic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment