forked from remote/site-ffmuc
Makefile: Use variable for target selection
This commit is contained in:
14
Makefile
14
Makefile
@@ -4,6 +4,12 @@ GLUON_GIT_REF := v2015.1
|
|||||||
|
|
||||||
SECRET_KEY_FILE ?= ${HOME}/.gluon-secret-key
|
SECRET_KEY_FILE ?= ${HOME}/.gluon-secret-key
|
||||||
|
|
||||||
|
GLUON_TARGETS ?= \
|
||||||
|
ar71xx-generic \
|
||||||
|
ar71xx-nand \
|
||||||
|
mpc85xx-generic \
|
||||||
|
x86-kvm_guest
|
||||||
|
|
||||||
GLUON_RELEASE := $(shell git describe --tags 2>/dev/null)
|
GLUON_RELEASE := $(shell git describe --tags 2>/dev/null)
|
||||||
ifneq (,$(shell git describe --exact-match --tags 2>/dev/null))
|
ifneq (,$(shell git describe --exact-match --tags 2>/dev/null))
|
||||||
GLUON_BRANCH := stable
|
GLUON_BRANCH := stable
|
||||||
@@ -28,10 +34,10 @@ info:
|
|||||||
@echo
|
@echo
|
||||||
|
|
||||||
build: gluon-prepare
|
build: gluon-prepare
|
||||||
${GLUON_MAKE} GLUON_TARGET=ar71xx-generic
|
for target in ${GLUON_TARGETS}; do \
|
||||||
${GLUON_MAKE} GLUON_TARGET=ar71xx-nand
|
echo ""Building target $$target""; \
|
||||||
${GLUON_MAKE} GLUON_TARGET=mpc85xx-generic
|
${GLUON_MAKE} GLUON_TARGET="$$target"; \
|
||||||
${GLUON_MAKE} GLUON_TARGET=x86-kvm_guest
|
done
|
||||||
|
|
||||||
manifest: build
|
manifest: build
|
||||||
${GLUON_MAKE} manifest
|
${GLUON_MAKE} manifest
|
||||||
|
|||||||
Reference in New Issue
Block a user