summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-05-19 14:08:05 +0900
committerAlexander Larsson <alexl@redhat.com>2016-05-19 09:18:46 +0200
commite71c17845e5c9e7d6cfafce0dafe639656abd48c (patch)
tree8053b2ec2e35fd6d3be3311981ebc799556b63bf
parentdb60c8b4526ae5664ba43b6f6c8596c5ca8514ca (diff)
Allow overriding the output ostree repo location1.4
This allows one to specify the repository with: make REPO=/path/to/repo https://bugs.freedesktop.org/show_bug.cgi?id=95483
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index aadb30c..712b579 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,12 +24,12 @@ define subst-metadata
@echo "Done.";
endef
-all: repo $(patsubst %,%.in,$(SUBST_FILES))
+all: ${REPO} $(patsubst %,%.in,$(SUBST_FILES))
$(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.freedesktop.Sdk, `date`" \
${EXPORT_ARGS} sdk org.freedesktop.Sdk.json
rm -rf sdk
-repo:
- ostree init --mode=archive-z2 --repo=repo
+${REPO}:
+ ostree init --mode=archive-z2 --repo=${REPO}