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:19:23 +0200
commit5d599b190e5b2bb397a6541498aaa8ac396792cc (patch)
tree0180e5339cc7cd4c4986afae918b5c2e7cb0b21c
parent9927fb93c89505a967283bed3bc1fcd2fa768ad6 (diff)
Allow overriding the output ostree repo locationHEADmaster
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 0450faf..9af4f14 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}