summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-04-04 10:12:50 +0200
committerAlexander Larsson <alexl@redhat.com>2016-04-04 10:12:50 +0200
commitcbbdb5ee1ba4049295c0765aaf5d08a71ed8c1c2 (patch)
treecb7828bc3861e31b38698019b4a5304bbef5fe16
parent32687f64ef448f45e8245e6be4b9b6e396df98f6 (diff)
Always init repo if not there rather than use make dependencies
The repo make dependency makes us rebuild the platform each time something in the repo changes.
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4ee6912..8a1eafd 100644
--- a/Makefile
+++ b/Makefile
@@ -23,14 +23,12 @@ ${IMAGES} allimages:
mkdir -p build/${ARCH}
./freedesktop-sdk-build-yocto ${srcdir}/ ${builddir}/build/ ${ARCH} ${HASH}
-repo:
- ostree init --mode=archive-z2 --repo=repo
-
.PHONY: sdk platform
sdk: ${FILE_REF_SDK}
${FILE_REF_SDK}: metadata.sdk ${SDK_IMAGE}
+ if [ ! -d repo ]; then ostree init --mode=archive-z2 --repo=repo; fi
rm -rf sdk
mkdir sdk
(cd sdk; tar --transform 's,^./usr,files,S' --transform 's,^./etc,files/etc,S' --exclude="./[!eu]*" -xvf ../${SDK_IMAGE} > /dev/null)
@@ -41,7 +39,8 @@ ${FILE_REF_SDK}: metadata.sdk ${SDK_IMAGE}
platform: ${FILE_REF_PLATFORM}
-${FILE_REF_PLATFORM}: metadata.platform ${PLATFORM_IMAGE} repo
+${FILE_REF_PLATFORM}: metadata.platform ${PLATFORM_IMAGE}
+ if [ ! -d repo ]; then ostree init --mode=archive-z2 --repo=repo; fi
rm -rf platform
mkdir platform
(cd platform; tar --transform 's,^./usr,files,S' --transform 's,^./etc,files/etc,S' --exclude="./[!eu]*" -xvf ../${PLATFORM_IMAGE} > /dev/null)