diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-05-19 14:08:05 +0900 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-19 09:19:23 +0200 |
commit | 5d599b190e5b2bb397a6541498aaa8ac396792cc (patch) | |
tree | 0180e5339cc7cd4c4986afae918b5c2e7cb0b21c | |
parent | 9927fb93c89505a967283bed3bc1fcd2fa768ad6 (diff) |
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-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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} |