-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 1.25 KB
/
Makefile
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
# Makefile for testing and installing the custom OCaml exporter for Jupyter Notebook
# MIT Licensed, (C) 2017 Lilian Besson (Naereen)
# https://GitHub.com/Naereen/Jupyter-NBConvert-OCaml
SHELL=/usr/bin/env /bin/bash
test: convert_both_and_compare execute_both convert_demo_ocaml
install:
sudo -H python3 setup.py install --force
uninstall:
sudo -H pip3 uninstall jupyter_nbconvert_ocaml
convert_both_and_compare: convert_demo_script convert_demo_ocaml_local compare
compare:
diff --side-by-side demo_notebook_script.ml demo_notebook_ocaml.ml
execute_both:
ocaml < demo_notebook_script.ml
ocaml < demo_notebook_ocaml.ml
convert_demo_script:
jupyter nbconvert --no-prompt --to script --output demo_notebook_script.ml demo_notebook_ocaml.ipynb
convert_demo_ocaml_local:
jupyter nbconvert --no-prompt --to jupyter_nbconvert_ocaml.OCamlExporter --output demo_notebook_ocaml.ml demo_notebook_ocaml.ipynb
convert_demo_ocaml:
jupyter nbconvert --no-prompt --to ocaml --output demo_notebook_ocaml.ml demo_notebook_ocaml.ipynb
clean:
-rm -rv jupyter_nbconvert_ocaml/__pycache__
-sudo -H rm -rvI dist build jupyter_nbconvert_ocaml.egg-info
send: send_zamok
send_zamok:
CP --exclude=.ipynb_checkpoints --exclude=.git ./ ${Szam}publis/Jupyter-NBConvert-Ocaml.git/