diff options
author | Ron <ron@debian.org> | 2013-05-11 07:33:03 +0930 |
---|---|---|
committer | Ron <ron@debian.org> | 2013-05-11 07:33:03 +0930 |
commit | 8d925ec2543a57ea48dad576b00bd14dbc4c817e (patch) | |
tree | a264eabd6f3e784a9f63fa7d6a2334ac5824ea43 /Makefile.unix | |
parent | b7d5531ffeacfd2d876d05c59be06926ddff11e5 (diff) | |
download | libopus-8d925ec2543a57ea48dad576b00bd14dbc4c817e.tar.gz |
Don't fail hard if package_version does not exist
There's currently at least one way that people can legitimately get a
tarball that doesn't include it, via the gitweb snapshots, so create
it rather than considering that an error to be manually fixed.
Diffstat (limited to 'Makefile.unix')
-rw-r--r-- | Makefile.unix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.unix b/Makefile.unix index 84244bf7..7d37995d 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -116,7 +116,11 @@ celt/celt.o: CFLAGS += -DPACKAGE_VERSION='$(PACKAGE_VERSION)' celt/celt.o: package_version package_version: force - @./update_version || true + @if [ -x ./update_version ]; then \ + ./update_version || true; \ + elif [ ! -e ./package_version ]; then \ + echo 'PACKAGE_VERSION="unknown"' > ./package_version; \ + fi force: |