diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-04-21 18:12:41 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-04-21 18:14:13 +0200 |
commit | 5179989efd6ae255c38af9d00a4aad02f0ce58b7 (patch) | |
tree | e6aaeb672cac8a647c68b88ba5b7ac155c635b08 | |
parent | d239d7e5acdf8761b024626e70f174016563a804 (diff) | |
download | ghdl-5179989efd6ae255c38af9d00a4aad02f0ce58b7.tar.gz ghdl-5179989efd6ae255c38af9d00a4aad02f0ce58b7.tar.bz2 ghdl-5179989efd6ae255c38af9d00a4aad02f0ce58b7.zip |
Makefile.in: do not try to replace tarball.
For #554
-rw-r--r-- | Makefile.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in index 7bcd1e157..a61189dde 100644 --- a/Makefile.in +++ b/Makefile.in @@ -146,12 +146,13 @@ include $(srcdir)/src/grt/Makefile.inc version.tmp: $(srcdir)/src/version.in force # Create version.tmp from version.in, using git date/hash - if ! test -d $(srcdir)/.git \ - || ! desc=`cd $(srcdir); git describe --dirty`; then \ - desc="tarball"; \ + if test -d $(srcdir)/.git \ + && desc=`cd $(srcdir); git describe --dirty`; then \ + sub="s/[(].*[)]/($$desc)/"; \ + else \ + sub="s/tarball/tarball/"; \ fi; \ - $(SED) -e "s/[(].*[)]/($$desc)/" \ - -e "s/@VER@/$(ghdl_version)/" < $< > $@; \ + $(SED) -e "$$sub" -e "s/@VER@/$(ghdl_version)/" < $< > $@; \ version.ads: version.tmp # Change version.ads only if version.tmp has been modified to avoid |