This repository was archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (35 loc) · 1.93 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
39
40
41
42
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
prepare:
mkdir packages
mkdir source/documentation/ipynb
git clone --depth 1 "https://github.com/ubermag/discretisedfield.git" packages/discretisedfield
git clone --depth 1 "https://github.com/ubermag/micromagneticdata.git" packages/micromagneticdata
git clone --depth 1 "https://github.com/ubermag/micromagneticmodel.git" packages/micromagneticmodel
git clone --depth 1 "https://github.com/ubermag/micromagnetictests.git" packages/micromagnetictests
git clone --depth 1 "https://github.com/ubermag/oommfc.git" packages/oommfc
git clone --depth 1 "https://github.com/ubermag/ubermag.git" packages/ubermag
git clone --depth 1 "https://github.com/ubermag/ubermagtable.git" packages/ubermagtable
git clone --depth 1 "https://github.com/ubermag/ubermagutil.git" packages/ubermagutil
git clone --depth 1 "https://github.com/ubermag/workshop.git" packages/workshop
cp packages/ubermag/docs/changelog.rst source/changelog.rst
for PKG in discretisedfield micromagneticdata micromagneticmodel micromagnetictests oommfc ubermagtable ubermagutil ; do \
cp -r "packages/$$PKG/docs/ipynb" "source/documentation/ipynb/$$PKG" ; \
done
cp -r packages/workshop/tutorials source/workshop/tutorials
clean:
rm -rf packages source/changelog.rst source/workshop/tutorials source/documentation/ipynb source/api/_autosummary
.PHONY: help prepare clean Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)