diff -r 3bed76a0fcd3 -r 9504de208106 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Thu Jul 15 09:36:24 2010 +0200 @@ -0,0 +1,25 @@ +DESTDIR = / + +prefix = /usr/local +sbindir = ${prefix}/sbin +etcdir = /etc + +.PHONY: all clean install + +all: kvmtool + +kvmtool: kvmtool.sh + @sed -e 's|\[% VERSION %\]|'"`hg id -bit`"'|;' \ + -e 's|\[% BUILDINFO %\]|'"`hostname`:`pwd`"'|;' \ + <$^ >$@ + @chmod +x $@ + +clean: ; rm -f kvmtool + +install: all + install -m 0755 -d ${DESTDIR}${sbindir}/ + install -m 0555 kvmtool ${DESTDIR}${sbindir}/kvmtool + install -m 0755 -d ${DESTDIR}${etcdir}/ + test -f ${DESTDIR}${etcdir}/kvmtab \ + || install -m 0644 kvmtab.ex ${DESTDIR}${etcdir}/kvmtab +