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

https://bugs.freedesktop.org/show_bug.cgi?id=95483
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.";
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}
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