synced-timer/Makefile

13 lines
No EOL
393 B
Makefile

DESTDIR=public
VERSION=$(shell git describe --exact-match --tags $(shell git log -n1 --pretty='%h') || echo "git - $(shell git rev-parse --short HEAD)")
help:
@echo "Options:"
@echo " all Build all"
all:
install -d $(DESTDIR)
install src/*.php $(DESTDIR)
cp -r src/static $(DESTDIR)
install .htaccess $(DESTDIR)
printf "<?php\n\$$VERSION = \"${VERSION}\";\n" > ${DESTDIR}/version.php