X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=time-slider.git;a=blobdiff_plain;f=Makefile;h=ef0c9aa54a9346f1f8c3866bc875e5bf9fd7775a;hp=d9fddb267cc6e96daa6e8363106e10417945fc1e;hb=d7105eb523aded4cd88f1f69acedb5e05b458158;hpb=f4594ed407bba1263b2bc93ce70e27a599e2ed3c diff --git a/Makefile b/Makefile index d9fddb2..ef0c9aa 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,14 @@ -include VERSION +ifeq ($(wildcard .git),) + include VERSION +else + VERSION=$(shell git describe) +endif mkinstalldirs = /usr/bin/mkdir -p -INSTALL = /usr/sbin/install -INSTALL_DATA = ${INSTALL} -u root -g bin -m 644 -f -INSTALL_PROGRAM = ${INSTALL} -u root -g bin -f -INSTALL_SCRIPT = ${INSTALL} -f +INSTALL = /usr/bin/install +INSTALL_DATA = ${INSTALL} -m 644 -t +INSTALL_PROGRAM = ${INSTALL} -t +INSTALL_SCRIPT = ${INSTALL} -t RM = /usr/bin/rm -f RMRF = /usr/bin/rm -Rf RMDIR = /usr/bin/rmdir