cleanup makefile

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-15 15:44:18 +03:00
parent a6843b2bf6
commit db01cbcf66
Signed by: pleshevskiy
GPG Key ID: 79C4487B44403985
2 changed files with 13 additions and 26 deletions

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
PAR := $(MAKE) -j 128
watch:
${PAR} deno-w sass-w
deno-w:
deno run -A --watch server.ts
sass-w:
sass -w styles/main.scss public/styles/main.css
help:
cat makefile

View File

@ -1,26 +0,0 @@
PAR := $(MAKE) -j 128
DOCKER_NAME := recipes
DOCKER_TAG := recipes
watch:
${PAR} deno-w sass-w
deno-w:
deno run -A --watch server.ts
sass-w:
sass -w styles/main.scss public/styles/main.css
docker-restart: docker-stop docker-run
docker-stop:
docker rm ${DOCKER_NAME} --force
docker-run:
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
docker-build:
docker build -t ${DOCKER_TAG} .
help:
cat makefile