projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbc14a2
)
Made ChangeLog phony so it will always get regenerated. But don't try to regenerated...
author
David Levine
<levinedl@acm.org>
Sat, 28 Jan 2012 19:52:59 +0000
(13:52 -0600)
committer
David Levine
<levinedl@acm.org>
Sat, 28 Jan 2012 19:52:59 +0000
(13:52 -0600)
Makefile.am
patch
|
blob
|
history
diff --git
a/Makefile.am
b/Makefile.am
index
1a93d89
..
cd3c886
100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-486,8
+486,12
@@
man/man.sed: Makefile
## Don't include commit hashes in ChangeLog.
ChangeLog:
## Don't include commit hashes in ChangeLog.
ChangeLog:
- @git --no-pager log --abbrev-commit | \
- egrep -v '^commit [0-9a-f]+$$' > $@
+ @[ -d .git ] && git --no-pager log --abbrev-commit | \
+ egrep -v '^commit [0-9a-f]+$$' > $@ || true
+## Make ChangeLog phony so it will always get regenerated. But don't
+## fail if we don't have a git repository in order to allow
+## regeneration of distribution archive or RPM.
+.PHONY: ChangeLog
##
## Our RPM build target
##
## Our RPM build target