# -* Makefile *- # # Author : Nadir BOUHAMOU (CEA) # # source path top_srcdir=@top_srcdir@ top_builddir=../.. srcdir=@srcdir@ VPATH=.:@srcdir@ doxygen=@DOXYGEN@ @COMMENCE@ # Executables targets BIN = MESHgeneral MESHcoordinates MESHconnectivities MESHINGexample FIELDcreate FIELDgeneral MEDMEM_InvokingDriverByAttachingItToAnObject MEDMEM_InvokingDriverFromStandardObjectMethod MEDMEM_InvokingDriverAtObjectCreationTime CPPFLAGS+=$(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome CXXFLAGS+=-ftemplate-depth-42 -I${KERNEL_ROOT_DIR}/include/salome # change motivated by the bug KERNEL4778. #LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome #LDFLAGSFORBIN+=$(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome -lmedmem LDFLAGSFORBIN+=$(MED2_LIBS) $(HDF5_LIBS) -lSALOMELocalTrace -L${KERNEL_ROOT_DIR}/lib/salome -lmedmem LIBSFORBIN= LDFLAGS= LIBS= @CONCLUDE@ doc: .doxygen_user .doxygen_devel ps ps: .doxygen_user .doxygen_devel MedMemory_user.ps MedMemory_devel.ps MEDMEM_UsersGuide.ps ps_2on1: .doxygen_user .doxygen_devel MedMemory_user_2on1.ps MedMemory_devel_2on1.ps MEDMEM_UsersGuide_2on1.ps pdf: .doxygen_user .doxygen_devel MedMemory_user.pdf MedMemory_devel.pdf MEDMEM_UsersGuide.pdf pdf_2on1: .doxygen_user .doxygen_devel MedMemory_user_2on1.pdf MedMemory_devel_2on1.pdf MEDMEM_UsersGuide_2on1.pdf # user doc : .doxygen_user: $(top_srcdir)/src/MEDMEM/Doxyfile_med_user.in cd $(top_builddir) ; ./config.status cd $(top_builddir)/src/MEDMEM && $(doxygen) Doxyfile_med_user touch $@ $(RM) -r doc_ref_user ln -s $(top_builddir)/src/MEDMEM/doc_ref_user doc_ref_user MedMemory_user.ps: cd ./doc_ref_user/latex && $(MAKE) ps cp -f ./doc_ref_user/latex/refman.ps $@ MedMemory_user_2on1.ps: cd ./doc_ref_user/latex && $(MAKE) ps_2on1 cp -f ./doc_ref_user/latex/refman_2on1.ps $@ MedMemory_user.pdf: cd ./doc_ref_user/latex && $(MAKE) pdf cp -f ./doc_ref_user/latex/refman.pdf $@ MedMemory_user_2on1.pdf: cd ./doc_ref_user/latex && $(MAKE) pdf_2on1 cp -f ./doc_ref_user/latex/refman_2on1.pdf $@ # developper doc .doxygen_devel: $(top_srcdir)/src/MEDMEM/Doxyfile_med_devel.in cd $(top_builddir) ; ./config.status cd $(top_builddir)/src/MEDMEM && $(doxygen) Doxyfile_med_devel touch $@ $(RM) -r doc_ref_devel ln -s $(top_builddir)/src/MEDMEM/doc_ref_devel doc_ref_devel MedMemory_devel.ps: cd ./doc_ref_devel/latex && $(MAKE) ps cp -f ./doc_ref_devel/latex/refman.ps $@ MedMemory_devel_2on1.ps: cd ./doc_ref_devel/latex && $(MAKE) ps_2on1 cp -f ./doc_ref_devel/latex/refman_2on1.ps $@ MedMemory_devel.pdf: cd ./doc_ref_devel/latex && $(MAKE) pdf cp -f ./doc_ref_devel/latex/refman.pdf $@ MedMemory_devel_2on1.pdf: cd ./doc_ref_devel/latex && $(MAKE) pdf_2on1 cp -f ./doc_ref_devel/latex/refman_2on1.pdf $@ # User Guide MEDMEM_UsersGuide.ps: MEDMEM_UsersGuide.dvi dvips -o MEDMEM_UsersGuide.ps MEDMEM_UsersGuide.dvi MEDMEM_UsersGuide.pdf: MEDMEM_UsersGuide.ps ps2pdf MEDMEM_UsersGuide.ps MEDMEM_UsersGuide.pdf MEDMEM_UsersGuide_2on1.ps: MEDMEM_UsersGuide.ps psnup -2 MEDMEM_UsersGuide.ps >MEDMEM_UsersGuide_2on1.ps MEDMEM_UsersGuide_2on1.pdf: MEDMEM_UsersGuide_2on1.ps ps2pdf MEDMEM_UsersGuide_2on1.ps MEDMEM_UsersGuide_2on1.pdf MEDMEM_UML.eps:MEDMEM_UML.dia dia -e $@ $< MEDMEM_UsersGuide.dvi: MEDMEM_UsersGuide.tex MEDMEM_UML.eps echo "Running latex..." latex $< #echo "Running makeindex..." #makeindex MEDMEM_UsersGuide.idx echo "Rerunning latex...." latex $< latex_count=5 while egrep -s 'Rerun (LaTeX|to get cross-references right)' MEDMEM_UsersGuide.log && [ $latex_count -gt 0 ] ;\ do \ echo "Rerunning latex...." ;\ latex $< ;\ latex_count=`expr $latex_count - 1` ;\ done MEDMEM_UsersGuide.tex:MEDMEM_UsersGuide.tex.in cd $(top_builddir) && CONFIG_FILES=./doc/MEDMEM/MEDMEM_UsersGuide.tex ./config.status # install procedure install: $(datadir)/doc ps_2on1 pdf_2on1 $(RM) -r $(datadir)/doc/html_ref_user $(datadir)/doc/html_ref_devel $(datadir)/doc/*.ps $(datadir)/doc/*.pdf cp -rf ./doc_ref_user/html $(datadir)/doc/html_ref_user cp -rf ./doc_ref_devel/html $(datadir)/doc/html_ref_devel cp -f MedMemory_user_2on1.ps MedMemory_user_2on1.pdf $(datadir)/doc cp -f MEDMEM_UsersGuide_2on1.ps MEDMEM_UsersGuide_2on1.pdf $(datadir)/doc cp -f MedMemory_devel_2on1.ps MedMemory_devel_2on1.pdf $(datadir)/doc $(datadir)/doc: $(INSTALL) -d $@ && chmod 755 $@ cleandoc: -$(RM) -r *pdf *ps doc_ref_* $(top_builddir)/src/MEDMEM/doc_ref_* .dep*