Use Makefile for building.

This commit is contained in:
flash 2025-04-11 19:16:02 +00:00
parent d21c36e1b2
commit 54a99c618c
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E

29
Makefile Normal file
View file

@ -0,0 +1,29 @@
NODE_EXE := $(shell which node)
NPM_EXE := $(shell which npm)
BUILD_EXE := build.js
all: install build
install:
${NPM_EXE} ci
update:
${NPM_EXE} update --save
build:
${NODE_EXE} ${BUILD_EXE}
rebuild-css:
${NODE_EXE} ${BUILD_EXE} css
rebuild-html:
${NODE_EXE} ${BUILD_EXE} html
rebuild-js:
${NODE_EXE} ${BUILD_EXE} js
rebuild-webmanifest:
${NODE_EXE} ${BUILD_EXE} webmanifest
.PHONY: all install update build rebuild-css rebuild-html rebuild-js rebuild-webmanifest