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
24 CatalogResources.xml \
25 CatalogRessources.xml \
41 Application-Logo.png \
42 Application-Splash.png \
43 Application-About.png \
51 view_camera_dump.png \
94 killSalomeWithPort.py \
98 launchConfigureParser.py \
104 # copy header files in common directory
105 OWN_CONFIG_H=@OWN_CONFIG_H@
107 ifeq ($(OWN_CONFIG_H),yes)
108 ifeq ($(HAVE_SSTREAM),yes)
109 include_list=include/salome/SALOMEconfig.h include/salome/config.h
111 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
114 ifeq ($(HAVE_SSTREAM),yes)
115 include_list=include/salome/SALOMEconfig.h
117 include_list=include/salome/SALOMEconfig.h include/salome/sstream
121 inc: idl $(include_list)
123 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
127 # test if SALOMEconfig.h has changed (contents)
128 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
129 @if ! [ -a $@ ]; then \
132 if ! cmp $< $@; then \
136 include/salome/config.h: salome_adm/unix/config.h
140 include/salome/sstream: salome_adm/unix/sstream
147 (cd idl ; $(MAKE) $@) || exit 1
149 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
151 # (cd doc && $(MAKE) $@) || exit 1
153 # Install make_commence make_conclude ... for other modules
155 ($(INSTALL) -d $(incmakedir) || exit 1);
156 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
157 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
161 # finish libtool install
162 # @$(LT) --mode=finish $(libdir)
164 install-include: $(include_list)
165 $(INSTALL) -d $(includedir)
166 @for f in X $(include_list); do \
167 if test $$f != X; then \
168 (cp -p $$f $(includedir) || exit 1); \
172 # install script in $(bindir) :
173 install-bin: $(BIN_SCRIPT)
174 $(INSTALL) -d $(bindir)
175 $(INSTALL_PROGRAM) $^ $(bindir)
177 # install Plugin file
178 install-plugin: $(top_builddir)/share/salome/resources/Plugin
179 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
181 uninstall: uninstall-idl
184 $(RM) $(idldir)/*.idl
186 distclean: distclean-other
189 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
190 -$(RM) salome_adm/unix/make_*
191 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
192 -$(RM) config.cache config.log config.status
196 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
199 resources: $(top_builddir)/share/salome/resources/Plugin
201 install: install-bin install-include install-make install-plugin install-end