From 55c3fa22c3035b859b8a62d2be45c5b8882a8b53 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Thu, 19 May 2016 14:14:34 +0900 Subject: [PATCH] Allow overriding the output ostree repo location This allows one to specify the repository with: make REPO=/path/to/repo --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bde8709..42c85bb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ # Override the arch with `make ARCH=i386` ARCH ?= $(shell xdg-app --default-arch) +REPO ?= repo # SDK Versions setup here # @@ -23,13 +24,13 @@ define subst-metadata @echo "Done."; endef -all: repo $(patsubst %,%.in,$(SUBST_FILES)) +all: ${REPO} $(patsubst %,%.in,$(SUBST_FILES)) rm -rf sdk $(call subst-metadata) - flatpak-builder --force-clean --ccache --require-changes --repo=repo --arch=${ARCH} \ + flatpak-builder --force-clean --ccache --require-changes --repo=${REPO} --arch=${ARCH} \ --subject="build of org.gnome.Sdk, `date`" \ ${EXPORT_ARGS} sdk org.gnome.Sdk.json rm -rf sdk -repo: - ostree init --mode=archive-z2 --repo=repo +${REPO}: + ostree init --mode=archive-z2 --repo=${REPO} -- 2.8.1