antos-backend/Makefile
DanyLE ac36ba6ff0
All checks were successful
gitea-sync/antos-backend/pipeline/head This commit looks good
feat: add versions info to API
2024-03-17 21:11:37 +01:00

11 lines
357 B
Makefile

DESTDIR?=/opt/www/htdocs/os
BUILDID:=$(shell git rev-parse --short HEAD)
all:
- mkdir -p $(DESTDIR)
cp router.lua mimes.json $(DESTDIR)
cp -rf controllers $(DESTDIR)
cp -rf libs $(DESTDIR)
sed -i '1s/^/API_REF="$(BUILDID)"\n/' $(DESTDIR)/router.lua
clean:
rm -rf $(DESTDIR)/router.lua $(DESTDIR)/mimes.json \
$(DESTDIR)/controllers $(DESTDIR)/libs