mami/Makefile

31 lines
663 B
Makefile
Raw Permalink Normal View History

2025-04-11 19:16:02 +00:00
NODE_EXE := $(shell which node)
NPM_EXE := $(shell which npm)
BUILD_EXE := build.js
ENV_FILE := .env
2025-04-11 19:16:02 +00:00
all: install build
install:
${NPM_EXE} ci
update:
${NPM_EXE} update --save
build:
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE}
2025-04-11 19:16:02 +00:00
rebuild-css:
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} css
2025-04-11 19:16:02 +00:00
rebuild-html:
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} html
2025-04-11 19:16:02 +00:00
rebuild-js:
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} js
2025-04-11 19:16:02 +00:00
rebuild-webmanifest:
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} webmanifest
2025-04-11 19:16:02 +00:00
.PHONY: all install update build rebuild-css rebuild-html rebuild-js rebuild-webmanifest