emacs-jupyter/js/Makefile

27 lines
452 B
Makefile
Raw Normal View History

2018-11-15 14:20:26 -06:00
NPM ?= $(shell command -v npm)
ifeq ($(NPM),)
$(error "Node not installed (https://nodejs.org/en/)")
endif
YARN ?= $(shell command -v yarn)
ifeq ($(YARN),)
# If yarn isn't already installed, it is built locally
YARN = ./node_modules/.bin/yarn
endif
.PHONY: all build clean
all: build
clean:
rm -rf built/
really-clean: clean
rm -rf node_modules
build: built/index.built.js
built/index.built.js:
$(NPM) install
$(YARN) run build --progress