Update makefile

This commit is contained in:
2021-11-02 10:16:25 +01:00
parent 43b86b6ca5
commit e7f0d1a879

View File

@@ -1,24 +1,10 @@
run: run:
${MAKE} -j2 backgroundrun backgroundts ${MAKE} -j2 backgroundrun backgroundsvelte
build: build:
tsc res/static/typescript/lib/*.ts --outFile res/static/script/pixellib.js \ cd svelte && npm run build
res/static/typescript/home/*.ts \ go build main.go -o web
res/static/typescript/lib/*.ts --outFile res/static/script/home.js
go build main.go -o pixeldrain-web
deps:
npm install -g typescript
backgroundrun: backgroundrun:
go run main.go go run main.go
backgroundts: backgroundsvelte:
tsc --watch --project res/static/typescript/home cd svelte && npm run dev
--project res/static/typescript/textupload
docker:
go build -o docker/pixeldrain-web docker/main.go
chmod +x docker/pixeldrain-web
docker build --tag pixeldrain-web -f docker/Dockerfile .
rm docker/pixeldrain-web
.PHONY: docker