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
6if !TFEL_WIN
7SUBDIRS += tfel-doc tfel-check
8endif
9
10DISTCHECK_CONFIGURE_FLAGS = --enable-tests
11
12doc-install: doc
13	mkdir -p @docdir@
14	mkdir -p @docdir@/reference-guide
15	mkdir -p @docdir@/mfront
16	mkdir -p @docdir@/mtest
17	mkdir -p @docdir@/ptest
18	mkdir -p @docdir@/release-notes-2.0
19	mkdir -p @docdir@/release-notes-3.0
20	mkdir -p @docdir@/release-notes-2.0.4
21	mkdir -p @docdir@/presentations
22	cp -R docs/html @docdir@
23	cp    docs/tfel/reference-guide.pdf              @docdir@/reference-guide
24	cp    docs/mfront/general/mfront.pdf             @docdir@/mfront
25	cp    docs/mfront/behaviours/behaviours.pdf      @docdir@/mfront
26	cp    docs/mfront/finitestrain/finitestrain.pdf  @docdir@/mfront
27	cp    docs/mfront/planestress/planestress.pdf    @docdir@/mfront
28	cp    docs/mfront/castem/castem.pdf              @docdir@/mfront
29	cp    docs/mfront/aster/aster.pdf                @docdir@/mfront
30	cp    docs/mfront/zmat/zmat.pdf                  @docdir@/mfront
31	cp    docs/mfront/abaqus/abaqus.pdf              @docdir@/mfront
32	cp    docs/mtest/mtest.pdf                       @docdir@/mtest
33	cp    docs/mtest/ptest.pdf                       @docdir@/ptest
34	cp    docs/release-notes-2.0/tfel-2.0.pdf        @docdir@/release-notes-2.0
35	cp    docs/release-notes-2.0.3/tfel-2.0.3.pdf    @docdir@/release-notes-2.0.3
36	cp    docs/release-notes-2.0.4/tfel-2.0.4.pdf    @docdir@/release-notes-2.0.4
37	cp    docs/release-notes-3.0/tfel-3.0.pdf        @docdir@/release-notes-3.0
38
39#	cp    docs/presentations/mfront-presentation.pdf @docdir@/presentations
40
41doc: doc-pdf doc-html
42
43doc-html: tfel-doc-html
44
45doc-pdf: tfel-doc-pdf mfront-doc-pdf mtest-doc-pdf ptest-doc-pdf \
46	 presentations-doc-pdf                                   \
47	 release-notes-2.0-doc-pdf release-notes-2.0.3-doc-pdf   \
48	 release-notes-2.0.4-doc-pdf release-notes-3.0-doc-pdf
49
50tfel-doc-html:
51	cd @top_srcdir@ && doxygen @abs_top_builddir@/Doxyfile && cd -
52
53tfel-doc-pdf:
54	cd docs/tfel ;                                            \
55	make -f Makefile.doc
56
57mtest-doc-pdf:
58	cd docs/mtest ;                                            \
59	make -f Makefile.doc
60
61ptest-doc-pdf:
62	cd docs/ptest ;                                            \
63	make -f Makefile.doc
64
65release-notes-2.0-doc-pdf:
66	cd docs/release-notes-2.0 ;                                  \
67	make -f Makefile.doc
68
69release-notes-2.0.3-doc-pdf:
70	cd docs/release-notes-2.0.3 ;                              \
71	make -f Makefile.doc
72
73release-notes-2.0.4-doc-pdf:
74	cd docs/release-notes-2.0.4 ;                              \
75	make -f Makefile.doc
76
77release-notes-3.0-doc-pdf:
78	cd docs/release-notes-3.0 ;                                \
79	make -f Makefile.doc
80
81mfront-doc-pdf:
82	cd docs/mfront ;                                            \
83	make -f Makefile.doc all
84
85presentations-doc-pdf:
86# cd docs/presentations ;                                     \
87# make -f Makefile.doc
88
89EXTRA_DIST = bootstrap.sh     \
90	     CMakeLists.txt   \
91	     tfel.doxygen     \
92	     INSTALL          \
93             INSTALL-cmake    \
94	     env-win32.sh.in  \
95	     env-win32.bat.in \
96	     README.md
97
98licencesdir = $(pkgdatadir)
99dist_licences_DATA = LICENCE-GNU-GPL \
100                     LICENCE-CECILL-A-EN \
101                     LICENCE-CECILL-A-FR
102