synced-timer/Makefile

13 lines
393 B
Makefile
Raw Normal View History

2021-07-11 09:43:42 +02:00
DESTDIR=public
2022-05-12 17:27:53 +02:00
VERSION=$(shell git describe --exact-match --tags $(shell git log -n1 --pretty='%h') || echo "git - $(shell git rev-parse --short HEAD)")
2021-07-11 09:43:42 +02:00
help:
@echo "Options:"
@echo " all Build all"
all:
install -d $(DESTDIR)
2022-05-11 23:45:32 +02:00
install src/*.php $(DESTDIR)
cp -r src/static $(DESTDIR)
2022-05-12 17:27:53 +02:00
install .htaccess $(DESTDIR)
printf "<?php\n\$$VERSION = \"${VERSION}\";\n" > ${DESTDIR}/version.php