mirror of
https://github.com/antos-rde/antos-backend.git
synced 2024-12-25 12:48:22 +01:00
11 lines
357 B
Makefile
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
|