Skip to content

Commit

Permalink
makefile: set version on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed May 18, 2010
1 parent 7807b02 commit c3a2eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
@@ -1,12 +1,12 @@
VERSION=1.0
VERSION=$(shell git describe)

all: doc
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
Expand Down

0 comments on commit c3a2eaf

Please sign in to comment.