Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.4 KB
/
Copy pathMakefile
File metadata and controls
56 lines (43 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# A GNU Makefile to run various tasks - compatibility for us old-timers.
# Note: This makefile include remake-style target comments.
# These comments before the targets start with #:
# remake --tasks to shows the targets and the comments
.PHONY: all \
ChangeLog-without-corrections \
console \
dist \
lab \
notebook \
register-kernel \
rmChangeLog
GIT2CL ?= admin-tools/git2cl
PYTHON3 ?= python3
# Default options
o = --notebook-dir=$(HOME)/Jupyter-notebooks
#: Make distribution: wheels and tarball
dist:
./admin-tools/make-dist.sh
#: Run a Jupyter lab; the more modern IDE
lab:
jupyter lab --kernel=mathics3-extension-ipykernel $o
#: List all of the Jupyter Kernels installed
list-kernels:
jupyter kernelspec list
#: Run a Jupyter notebook; the classic single-instance interface
notebook:
jupyter notebook $o
#: Run a Jupyter console; for debugging.
console:
jupyter console --kernel=mathics3-extension-ipykernel
#: Register a mathics3 Jupyter kernel
register-kernel:
$(PYTHON3) -m mathics3_kernel.frontend.install_kernel
#: Remove ChangeLog
rmChangeLog:
$(RM) ChangeLog || true
#: Create ChangeLog from version control without corrections
ChangeLog-without-corrections:
git log --pretty --numstat --summary | $(GIT2CL) >ChangeLog
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog ChangeLog-without-corrections
patch ChangeLog < ChangeLog-spell-corrected.diff