Salome HOME
Building a version which will be tagged PreV2_0_0 working with KERNEL V1_4_0.
[tools/medcoupling.git] / doc / MEDMEM / Makefile.in
1 # -* Makefile *- 
2 #
3 # Author : Nadir BOUHAMOU (CEA)
4 #
5
6 # source path
7 top_srcdir=@top_srcdir@
8 top_builddir=../..
9 srcdir=@srcdir@
10 VPATH=.:@srcdir@
11 doxygen=@DOXYGEN@
12
13 @COMMENCE@
14
15 # Executables targets
16 BIN = MESHgeneral MESHcoordinates MESHconnectivities MESHINGexample FIELDcreate FIELDgeneral MEDMEM_InvokingDriverByAttachingItToAnObject MEDMEM_InvokingDriverFromStandardObjectMethod MEDMEM_InvokingDriverAtObjectCreationTime 
17
18 CPPFLAGS+=$(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
19
20 CXXFLAGS+=-ftemplate-depth-42 -I${KERNEL_ROOT_DIR}/include/salome
21
22 # change motivated by the bug KERNEL4778.
23 #LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome
24 LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome
25
26 #LDFLAGSFORBIN+=$(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome -lmedmem
27 LDFLAGSFORBIN+=$(MED2_LIBS) $(HDF5_LIBS) -lSALOMELocalTrace -L${KERNEL_ROOT_DIR}/lib/salome -lmedmem
28
29 LIBSFORBIN=
30
31 LDFLAGS=
32
33 LIBS=
34
35 @CONCLUDE@
36
37 doc: .doxygen_user .doxygen_devel ps
38
39 ps: .doxygen_user .doxygen_devel MedMemory_user.ps MedMemory_devel.ps MEDMEM_UsersGuide.ps
40
41 ps_2on1: .doxygen_user .doxygen_devel MedMemory_user_2on1.ps MedMemory_devel_2on1.ps MEDMEM_UsersGuide_2on1.ps
42
43 pdf: .doxygen_user .doxygen_devel MedMemory_user.pdf MedMemory_devel.pdf MEDMEM_UsersGuide.pdf
44
45 pdf_2on1: .doxygen_user .doxygen_devel MedMemory_user_2on1.pdf MedMemory_devel_2on1.pdf MEDMEM_UsersGuide_2on1.pdf
46
47 # user doc :
48
49 .doxygen_user: $(top_srcdir)/src/MEDMEM/Doxyfile_med_user.in
50         cd $(top_builddir) ; ./config.status
51         cd $(top_builddir)/src/MEDMEM && $(doxygen) Doxyfile_med_user
52         touch $@
53         $(RM) -r doc_ref_user
54         ln -s $(top_builddir)/src/MEDMEM/doc_ref_user doc_ref_user
55
56 MedMemory_user.ps:
57         cd ./doc_ref_user/latex && $(MAKE) ps
58         cp -f ./doc_ref_user/latex/refman.ps $@
59
60 MedMemory_user_2on1.ps:
61         cd ./doc_ref_user/latex && $(MAKE) ps_2on1
62         cp -f ./doc_ref_user/latex/refman_2on1.ps $@
63
64 MedMemory_user.pdf:
65         cd ./doc_ref_user/latex && $(MAKE) pdf
66         cp -f ./doc_ref_user/latex/refman.pdf $@
67
68 MedMemory_user_2on1.pdf:
69         cd ./doc_ref_user/latex && $(MAKE) pdf_2on1
70         cp -f ./doc_ref_user/latex/refman_2on1.pdf $@
71
72 # developper doc
73
74 .doxygen_devel: $(top_srcdir)/src/MEDMEM/Doxyfile_med_devel.in
75         cd $(top_builddir) ; ./config.status
76         cd $(top_builddir)/src/MEDMEM && $(doxygen) Doxyfile_med_devel
77         touch $@
78         $(RM) -r doc_ref_devel
79         ln -s $(top_builddir)/src/MEDMEM/doc_ref_devel doc_ref_devel
80
81 MedMemory_devel.ps:
82         cd ./doc_ref_devel/latex && $(MAKE) ps
83         cp -f ./doc_ref_devel/latex/refman.ps $@
84
85 MedMemory_devel_2on1.ps:
86         cd ./doc_ref_devel/latex && $(MAKE) ps_2on1
87         cp -f ./doc_ref_devel/latex/refman_2on1.ps $@
88
89 MedMemory_devel.pdf:
90         cd ./doc_ref_devel/latex && $(MAKE) pdf
91         cp -f ./doc_ref_devel/latex/refman.pdf $@
92
93 MedMemory_devel_2on1.pdf:
94         cd ./doc_ref_devel/latex && $(MAKE) pdf_2on1
95         cp -f ./doc_ref_devel/latex/refman_2on1.pdf $@
96
97 # User Guide
98
99 MEDMEM_UsersGuide.ps: MEDMEM_UsersGuide.dvi
100         dvips -o MEDMEM_UsersGuide.ps MEDMEM_UsersGuide.dvi
101
102 MEDMEM_UsersGuide.pdf: MEDMEM_UsersGuide.ps
103         ps2pdf MEDMEM_UsersGuide.ps MEDMEM_UsersGuide.pdf
104
105 MEDMEM_UsersGuide_2on1.ps: MEDMEM_UsersGuide.ps
106         psnup -2 MEDMEM_UsersGuide.ps >MEDMEM_UsersGuide_2on1.ps
107
108 MEDMEM_UsersGuide_2on1.pdf: MEDMEM_UsersGuide_2on1.ps
109         ps2pdf MEDMEM_UsersGuide_2on1.ps MEDMEM_UsersGuide_2on1.pdf
110
111
112 MEDMEM_UML.eps:MEDMEM_UML.dia
113         dia -e $@ $<
114
115 MEDMEM_UsersGuide.dvi: MEDMEM_UsersGuide.tex MEDMEM_UML.eps
116         echo "Running latex..."
117         latex $<
118         #echo "Running makeindex..."
119         #makeindex MEDMEM_UsersGuide.idx
120         echo "Rerunning latex...."
121         latex $<
122         latex_count=5
123         while egrep -s 'Rerun (LaTeX|to get cross-references right)' MEDMEM_UsersGuide.log && [ $latex_count -gt 0 ] ;\
124             do \
125               echo "Rerunning latex...." ;\
126               latex $< ;\
127               latex_count=`expr $latex_count - 1` ;\
128             done
129
130 MEDMEM_UsersGuide.tex:MEDMEM_UsersGuide.tex.in
131         cd $(top_builddir) && CONFIG_FILES=./doc/MEDMEM/MEDMEM_UsersGuide.tex ./config.status
132
133 # install procedure
134
135 install: $(datadir)/doc ps_2on1 pdf_2on1
136         $(RM) -r $(datadir)/doc/html_ref_user $(datadir)/doc/html_ref_devel $(datadir)/doc/*.ps $(datadir)/doc/*.pdf
137         cp -rf ./doc_ref_user/html $(datadir)/doc/html_ref_user
138         cp -rf ./doc_ref_devel/html $(datadir)/doc/html_ref_devel
139         cp -f MedMemory_user_2on1.ps MedMemory_user_2on1.pdf $(datadir)/doc
140         cp -f MEDMEM_UsersGuide_2on1.ps MEDMEM_UsersGuide_2on1.pdf $(datadir)/doc
141         cp -f MedMemory_devel_2on1.ps MedMemory_devel_2on1.pdf $(datadir)/doc
142
143 $(datadir)/doc:
144         $(INSTALL) -d $@ && chmod 755 $@
145
146 cleandoc:
147         -$(RM) -r *pdf *ps doc_ref_* $(top_builddir)/src/MEDMEM/doc_ref_* .dep*