2022-06-21 10:33:35 +00:00
|
|
|
.SILENT:
|
2022-08-04 11:00:24 +00:00
|
|
|
.PHONY: build server serve help test dev resume
|
2022-08-02 20:09:45 +00:00
|
|
|
PORT?=8001
|
|
|
|
HOST?=127.0.0.1
|
2022-06-21 10:33:35 +00:00
|
|
|
|
2022-08-02 20:09:45 +00:00
|
|
|
build:
|
|
|
|
./build_tools/static_build.sh
|
2022-08-04 11:00:24 +00:00
|
|
|
resume:
|
|
|
|
./build_tools/server.sh start
|
|
|
|
env TARGET_LOCALE=fr SERVER_URL=127.0.0.1:8442 ./build_tools/latex.sh
|
|
|
|
env TARGET_LOCALE=en SERVER_URL=127.0.0.1:8442 ./build_tools/latex.sh
|
|
|
|
./build_tools/server.sh stop
|
2022-06-21 10:33:35 +00:00
|
|
|
serve: server
|
|
|
|
dev: server
|
|
|
|
server:
|
|
|
|
php -S $(HOST):$(PORT) -t public
|
|
|
|
test:
|
|
|
|
php ./vendor/bin/phpunit --stop-on-failure tests
|
2022-08-02 20:09:45 +00:00
|
|
|
|