27 lines
550 B
Makefile
27 lines
550 B
Makefile
NODE_EXE := $(shell which node)
|
|
NPM_EXE := $(shell which npm)
|
|
|
|
BUILD_EXE := build.js
|
|
ENV_FILE := .env
|
|
|
|
all: install build
|
|
|
|
install:
|
|
${NPM_EXE} ci
|
|
|
|
update:
|
|
${NPM_EXE} update --save
|
|
|
|
build:
|
|
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE}
|
|
|
|
rebuild-css:
|
|
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} css
|
|
|
|
rebuild-html:
|
|
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} html
|
|
|
|
rebuild-js:
|
|
${NODE_EXE} --env-file-if-exists ${ENV_FILE} ${BUILD_EXE} js
|
|
|
|
.PHONY: all install update build rebuild-css rebuild-html rebuild-js
|