forked from NanoComp/meep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
58 lines (46 loc) · 1.15 KB
/
Makefile.am
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
57
58
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = src tests
if WITH_LIBCTL
if WITH_SCHEME
SUBDIRS += scheme
endif
endif
if WITH_PYTHON
if WITH_MPB
if WITH_LIBCTLGEOM
SUBDIRS += libpympb
endif
endif
SUBDIRS += python
endif
EXTRA_DIST = NEWS.md LICENSE COPYRIGHT m4 meep-pkgconfig.in doc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = meep.pc
meep.pc: meep-pkgconfig
cp -f $(top_builddir)/meep-pkgconfig $@
libmeep:
cd src && $(MAKE)
# Generate the Python API Document
# PYTHONPATH is set to use the in-place build of meep
python_api_doc: all
if test '$(top_srcdir)' != . ; then \
cp -rf $(top_srcdir)/doc .; \
chmod -R +rw doc; \
fi
if test -z $$SKIP_BUILD_DOCS; then \
PYTHONPATH=./python $(PYTHON) doc/generate_py_api.py; \
fi
# Build the HTML version of the docs
docs: python_api_doc
if test -z $$SKIP_BUILD_DOCS; then \
$(PYTHON) -m mkdocs build -f $(top_srcdir)/mkdocs.yml; \
fi
# Build a tarball containing just the html docs
docs-dist: docs
tar czvf meep-documentation-$(PACKAGE_VERSION).tgz doc/site
clean-local:
rm -f meep-documentation-$(PACKAGE_VERSION).tgz
if test '$(top_srcdir)' != . ; then \
rm -rf doc; \
fi
DISTCLEANFILES = meep.pc