summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-14 12:54:48 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-14 15:04:05 +0200
commit919a7c4d6e9f88be38e3f3ec588d0bc9ae5bbe68 (patch)
tree9ee186bea13328b22adb7416a8834a5ddd75e86d
parentf06c2b58529cc1ffa97b5f918edc3b27b0b75140 (diff)
downloaddracut-919a7c4d6e9f88be38e3f3ec588d0bc9ae5bbe68.tar.gz
dracut-919a7c4d6e9f88be38e3f3ec588d0bc9ae5bbe68.tar.bz2
dracut-919a7c4d6e9f88be38e3f3ec588d0bc9ae5bbe68.zip
Makefile: do syncheck before creating the archive or rpm
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d2cd89e3..bfd1320d 100644
--- a/Makefile
+++ b/Makefile
@@ -158,7 +158,7 @@ clean:
dist: dracut-$(VERSION).tar.bz2
-dracut-$(VERSION).tar.bz2: doc
+dracut-$(VERSION).tar.bz2: doc syncheck
@echo "DRACUT_VERSION=$(VERSION)" > dracut-version.sh
git archive --format=tar $(VERSION) --prefix=dracut-$(VERSION)/ > dracut-$(VERSION).tar
mkdir -p dracut-$(VERSION)
@@ -168,7 +168,7 @@ dracut-$(VERSION).tar.bz2: doc
bzip2 -9 dracut-$(VERSION).tar
rm -f -- dracut-$(VERSION).tar
-rpm: dracut-$(VERSION).tar.bz2
+rpm: dracut-$(VERSION).tar.bz2 syncheck
rpmbuild=$$(mktemp -d -t rpmbuild-dracut.XXXXXX); src=$$(pwd); \
cp dracut-$(VERSION).tar.bz2 "$$rpmbuild"; \
LC_MESSAGES=C $$src/git2spec.pl $(VERSION) "$$rpmbuild" < dracut.spec > $$rpmbuild/dracut.spec; \