Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

makefile: set version on installation

  • Loading branch information...
commit c3a2eaf39f8a2a88e064834bd570a343b2663c17 1 parent 7807b02
@falconindy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
4 Makefile
@@ -1,4 +1,4 @@
-VERSION=1.0
+VERSION=$(shell git describe)
all: doc
doc: squashfu.1
@@ -6,7 +6,7 @@ doc: squashfu.1
install: all
@echo "installing squashfu to ${DESTDIR}/usr/bin"
@mkdir -p ${DESTDIR}/usr/bin
- @cp squashfu ${DESTDIR}/usr/bin
+ @sed "s/VER=.*/VER=${VERSION}/" < squashfu > ${DESTDIR}/usr/bin/squashfu
@chmod 755 ${DESTDIR}/usr/bin/squashfu
@mkdir -p ${DESTDIR}/etc
@cp squashfu.conf ${DESTDIR}/etc
Please sign in to comment.
Something went wrong with that request. Please try again.