summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-03-04 11:14:45 -0500
committerPeter Jones <pjones@pjones2.install.bos.redhat.com>2009-03-04 11:14:45 -0500
commit270003cd1f0c09a77608c4b0a07687c822f56274 (patch)
tree50ab13ad5ea3abbb9d8744457a1f16ff93cda7cb /Makefile
parent590b720f7478e80fea7fec360ce9868c51d1a4f1 (diff)
downloadanaconda-270003cd1f0c09a77608c4b0a07687c822f56274.tar.gz
anaconda-270003cd1f0c09a77608c4b0a07687c822f56274.tar.xz
anaconda-270003cd1f0c09a77608c4b0a07687c822f56274.zip
Add "scratch" target that builds a tarball of master
Since "archive-no-tag" isn't very useful for test builds, add another tarball-making target that just builds whatever is in master.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index af327216a..0caae22d0 100644
--- a/Makefile
+++ b/Makefile
@@ -108,11 +108,13 @@ tag:
ChangeLog:
(GIT_DIR=.git git log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
+ARCHIVE_TAG := anaconda-$(VERSION)-$(RELEASE)
+
archive-no-tag:
@rm -f ChangeLog docs/kickstart-docs.txt docs/command-line.txt
@make ChangeLog
@make -C docs kickstart-docs.txt command-line.txt
- @git archive --format=tar --prefix=anaconda-$(VERSION)/ anaconda-$(VERSION)-$(RELEASE) > anaconda-$(VERSION).tar
+ @git archive --format=tar --prefix=anaconda-$(VERSION)/ $(ARCHIVE_TAG) > anaconda-$(VERSION).tar
@mkdir -p anaconda-$(VERSION)/docs/
@cp docs/kickstart-docs.txt docs/command-line.txt anaconda-$(VERSION)/docs/
@cp ChangeLog anaconda-$(VERSION)/
@@ -120,6 +122,9 @@ archive-no-tag:
@bzip2 -f anaconda-$(VERSION).tar
@rm -rf anaconda-$(VERSION)
+scratch:
+ $(MAKE) ARCHIVE_TAG=master archive-no-tag
+
archive:
@make tag
@make archive-no-tag