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} .PHONY: all install update build