mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00

Without this change, if the user does not have bash, `command` fails (as it is a bash built-in). Explicitly set bash to be the shell. Omit error messages of the `rm` command while cleaning.
28 lines
508 B
Makefile
28 lines
508 B
Makefile
SHELL = bash
|
|
|
|
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/ 2>/dev/null || true
|
|
|
|
really-clean: clean
|
|
@rm -rf node_modules 2>/dev/null || true
|
|
|
|
build: built/index.built.js
|
|
|
|
built/index.built.js:
|
|
$(NPM) install
|
|
$(YARN) run build --progress
|