Browse Source

Makefile: use REV if set in git-source-dist target

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
454ee61e26
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      Makefile.am

+ 4
- 2
Makefile.am View File

@ -80,9 +80,11 @@ do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
mconnect.desktop: mconnect.desktop.in
$(do_desktop_subst) < $< > $@
REV ?= HEAD
git-source-dist:
gitsha=`git rev-list HEAD -1`; \
git archive --prefix=mconnect-$${gitsha}/ HEAD | \
gitsha=`git rev-list $(REV) -1`; \
git archive --prefix=mconnect-$${gitsha}/ $(REV) | \
gzip -c > mconnect-$${gitsha}.tar.gz
BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi mconnect.desktop


Loading…
Cancel
Save