Commit 9b520282 authored by Tristan Van Berkom's avatar Tristan Van Berkom Committed by Alexander Larsson
Browse files

Allow overriding the output ostree repo location

This allows one to specify the repository with:

   make REPO=/path/to/repo
parent d3a35762
# 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.";
all: repo $(patsubst %,,$(SUBST_FILES))
all: ${REPO} $(patsubst %,,$(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
ostree init --mode=archive-z2 --repo=repo
ostree init --mode=archive-z2 --repo=${REPO}
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