Use Makefile for building.

This commit is contained in:
flash 2025-04-11 19:47:48 +00:00
parent caee9c0d59
commit 250b69398f
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E

26
Makefile Normal file
View file

@ -0,0 +1,26 @@
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
.PHONY: all install update build rebuild-css rebuild-html rebuild-js