generate version file from cargo manifest

This commit is contained in:
Konstantin Stepanov 2015-12-10 21:40:31 +03:00
parent c2962262f4
commit f91b816b11

View File

@ -46,9 +46,12 @@ all: $(builddir) $(outputs)
clean:
rm -rf $(outdir)
distprep: $(distdir)
distprep: $(distdir) VERSION
cp -a Cargo.toml Cargo.lock configure Makefile.in LICENSE README.md VERSION src man units $(distdir)
VERSION: Cargo.toml
grep "^version =" Cargo.toml | sed -e 's/^version = "//' -e 's/"$$//' > VERSION
dist: $(tarball)
test: all