1## Makefile.am -- Process this file with automake to produce a Makefile.in file.
2ACLOCAL_AMFLAGS = -I m4
3SUBDIRS = include src mfront mfront-query mfm mfront-doc  \
4	  mtest tests mfm bindings cmake docs tfel-config \
5          mfm-test-generator tfel-unicode-filt
6
7if !TFEL_WIN
8SUBDIRS += tfel-doc tfel-check
9endif
10
11DISTCHECK_CONFIGURE_FLAGS = --enable-tests
12
13doc-install: doc
14	mkdir -p @docdir@
15	mkdir -p @docdir@/reference-guide
16	mkdir -p @docdir@/mfront
17	mkdir -p @docdir@/mtest
18	mkdir -p @docdir@/ptest
19	mkdir -p @docdir@/release-notes-2.0
20	mkdir -p @docdir@/release-notes-3.0
21	mkdir -p @docdir@/release-notes-2.0.4
22	mkdir -p @docdir@/presentations
23	cp -R docs/html @docdir@
24	cp    docs/tfel/reference-guide.pdf              @docdir@/reference-guide
25	cp    docs/mfront/general/mfront.pdf             @docdir@/mfront
26	cp    docs/mfront/behaviours/behaviours.pdf      @docdir@/mfront
27	cp    docs/mfront/finitestrain/finitestrain.pdf  @docdir@/mfront
28	cp    docs/mfront/planestress/planestress.pdf    @docdir@/mfront
29	cp    docs/mfront/castem/castem.pdf              @docdir@/mfront
30	cp    docs/mfront/aster/aster.pdf                @docdir@/mfront
31	cp    docs/mfront/zmat/zmat.pdf                  @docdir@/mfront
32	cp    docs/mfront/abaqus/abaqus.pdf              @docdir@/mfront
33	cp    docs/mtest/mtest.pdf                       @docdir@/mtest
34	cp    docs/mtest/ptest.pdf                       @docdir@/ptest
35	cp    docs/release-notes-2.0/tfel-2.0.pdf        @docdir@/release-notes-2.0
36	cp    docs/release-notes-2.0.3/tfel-2.0.3.pdf    @docdir@/release-notes-2.0.3
37	cp    docs/release-notes-2.0.4/tfel-2.0.4.pdf    @docdir@/release-notes-2.0.4
38	cp    docs/release-notes-3.0/tfel-3.0.pdf        @docdir@/release-notes-3.0
39
40#	cp    docs/presentations/mfront-presentation.pdf @docdir@/presentations
41
42doc: doc-pdf doc-html
43
44doc-html: tfel-doc-html
45
46doc-pdf: tfel-doc-pdf mfront-doc-pdf mtest-doc-pdf ptest-doc-pdf \
47	 presentations-doc-pdf                                   \
48	 release-notes-2.0-doc-pdf release-notes-2.0.3-doc-pdf   \
49	 release-notes-2.0.4-doc-pdf release-notes-3.0-doc-pdf
50
51tfel-doc-html:
52	cd @top_srcdir@ && doxygen @abs_top_builddir@/Doxyfile && cd -
53
54tfel-doc-pdf:
55	cd docs/tfel ;                                            \
56	make -f Makefile.doc
57
58mtest-doc-pdf:
59	cd docs/mtest ;                                            \
60	make -f Makefile.doc
61
62ptest-doc-pdf:
63	cd docs/ptest ;                                            \
64	make -f Makefile.doc
65
66release-notes-2.0-doc-pdf:
67	cd docs/release-notes-2.0 ;                                  \
68	make -f Makefile.doc
69
70release-notes-2.0.3-doc-pdf:
71	cd docs/release-notes-2.0.3 ;                              \
72	make -f Makefile.doc
73
74release-notes-2.0.4-doc-pdf:
75	cd docs/release-notes-2.0.4 ;                              \
76	make -f Makefile.doc
77
78release-notes-3.0-doc-pdf:
79	cd docs/release-notes-3.0 ;                                \
80	make -f Makefile.doc
81
82mfront-doc-pdf:
83	cd docs/mfront ;                                            \
84	make -f Makefile.doc all
85
86presentations-doc-pdf:
87# cd docs/presentations ;                                     \
88# make -f Makefile.doc
89
90EXTRA_DIST = bootstrap.sh     \
91	     CMakeLists.txt   \
92	     tfel.doxygen     \
93	     INSTALL          \
94             INSTALL-cmake    \
95	     env-win32.sh.in  \
96	     env-win32.bat.in \
97	     README.md
98
99licencesdir = $(pkgdatadir)
100dist_licences_DATA = LICENCE-GNU-GPL \
101                     LICENCE-CECILL-A-EN \
102                     LICENCE-CECILL-A-FR
103
104testsuitedir = $(pkgdatadir)
105nobase_dist_testsuite_DATA =			       \
106  test-suite/clean.sh				       \
107  test-suite/madnex/madnex.check		       \
108  test-suite/madnex/MadnexTest.py		       \
109  test-suite/madnex/MFront-test1.madnex		       \
110  test-suite/madnex/OverridableImplementation.py       \
111  test-suite/madnex/Plasticity.mfront		       \
112  test-suite/python-bindings/material-properties.check \
113  test-suite/python-bindings/MaterialPropertyTest.py   \
114  test-suite/python-bindings/test-mp.mfront
115