3 # Author : Patrick GOLDBRONN (CEA)
9 top_srcdir=@top_srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
17 SUBDIRS = idl src examples doc salome_adm
22 CatalogResources.xml \
23 CatalogRessources.xml \
34 killSalomeWithPort.py \
38 launchConfigureParser.py \
44 # copy header files in common directory
45 OWN_CONFIG_H=@OWN_CONFIG_H@
47 ifeq ($(OWN_CONFIG_H),yes)
48 ifeq ($(HAVE_SSTREAM),yes)
49 include_list=include/salome/SALOMEconfig.h include/salome/config.h
51 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
54 ifeq ($(HAVE_SSTREAM),yes)
55 include_list=include/salome/SALOMEconfig.h
57 include_list=include/salome/SALOMEconfig.h include/salome/sstream
61 inc: idl $(include_list)
63 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
67 # test if SALOMEconfig.h has changed (contents)
68 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
69 @if ! [ -a $@ ]; then \
72 if ! cmp $< $@; then \
76 include/salome/config.h: salome_adm/unix/config.h
80 include/salome/sstream: salome_adm/unix/sstream
87 (cd idl ; $(MAKE) $@) || exit 1
89 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
91 # (cd doc && $(MAKE) $@) || exit 1
93 # Install make_commence make_conclude ... for other modules
95 ($(INSTALL) -d $(incmakedir) || exit 1);
96 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
97 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
101 # finish libtool install
102 # @$(LT) --mode=finish $(libdir)
104 install-include: $(include_list)
105 $(INSTALL) -d $(includedir)
106 @for f in X $(include_list); do \
107 if test $$f != X; then \
108 (cp -p $$f $(includedir) || exit 1); \
112 # install script in $(bindir) :
113 install-bin: $(BIN_SCRIPT)
114 $(INSTALL) -d $(bindir)
115 $(INSTALL_PROGRAM) $^ $(bindir)
117 # install Plugin file
118 install-plugin: $(top_builddir)/share/salome/resources/Plugin
119 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
121 uninstall: uninstall-idl
124 $(RM) $(idldir)/*.idl
126 distclean: distclean-other
129 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
130 -$(RM) salome_adm/unix/make_*
131 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
132 -$(RM) config.cache config.log config.status
136 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
139 resources: $(top_builddir)/share/salome/resources/Plugin
141 install: install-bin install-include install-make install-plugin install-end