emacs-jupyter/Makefile

51 lines
710 B
Makefile
Raw Normal View History

2018-11-15 14:20:26 -06:00
EMACS ?= emacs
CASK ?= $(shell command -v cask)
ifeq ($(CASK),)
$(error "Install cask (https://github.com/cask/cask)")
endif
FILES = $(wildcard *.el)
ELCFILES = $(FILES:.el=.elc)
ifneq ($(TAGS),)
override TAGS := -t $(TAGS)
endif
ifneq ($(PATTERN),)
override PATTERN := -p $(PATTERN)
endif
.PHONY: all
all: compile
.PHONY: init
init:
$(CASK) install
$(CASK) update
.PHONY: dev
dev:
$(CASK) --dev install
$(CASK) --dev update
.PHONY: test
test: compile
$(CASK) exec ert-runner --no-win $(TAGS) $(PATTERN)
.PHONY: clean
clean:
make -C js clean
rm $(ELCFILES)
.PHONY: clean-cask
clean-cask:
rm -rf .cask/
.PHONY: widgets
widgets:
make -C js
.PHONY: compile
compile:
$(CASK) build