mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-06 07:51:39 -05:00
26 lines
452 B
Makefile
26 lines
452 B
Makefile
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
|