summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 421ab13)
raw | patch | inline | side by side (parent: 421ab13)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 20 Jun 2007 07:04:00 +0000 (09:04 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 20 Jun 2007 07:04:00 +0000 (09:04 +0200) |
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 91cb097ed54f261ff38b4cee8215b245f57b4429..1d320d3e6edc6d16a367a733f1744ea11f99b5d1 100644 (file)
--- a/Makefile
+++ b/Makefile
# to be overwritten by setting DIST_VERSION on the command line.
ifneq (,$(wildcard .git))
GITDESC = $(subst tig-,,$(shell git describe))
-WTDIRTY = $(if $(shell git-diff-index HEAD 2>/dev/null),-dirty)
+WTDIRTY = $(if $(shell git diff-index HEAD 2>/dev/null),-dirty)
VERSION = $(GITDESC)$(WTDIRTY)
else
VERSION = $(shell test -f VERSION && cat VERSION || echo "unknown-version")
@mkdir -p $(TARNAME) && \
cp tig.spec $(TARNAME) && \
echo $(VERSION) > $(TARNAME)/VERSION
- git-archive --format=tar --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar && \
+ git archive --format=tar --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar && \
tar rf $(TARNAME).tar $(TARNAME)/tig.spec $(TARNAME)/VERSION && \
gzip -f -9 $(TARNAME).tar && \
md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5
release-doc:
git checkout release && \
git merge master && \
- make clean doc-man doc-html && \
+ $(MAKE) clean doc-man doc-html && \
git add $(MANDOC) $(HTMLDOC) && \
git commit -m "Sync docs" && \
git checkout master
release-dist: release-doc
git checkout release && \
- make dist && \
+ $(MAKE) dist && \
git checkout master
.PHONY: all all-debug doc doc-man doc-html install install-doc \