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 \
95 killSalomeWithPort.py \
99 launchConfigureParser.py \
105 # copy header files in common directory
106 OWN_CONFIG_H=@OWN_CONFIG_H@
108 ifeq ($(OWN_CONFIG_H),yes)
109 ifeq ($(HAVE_SSTREAM),yes)
110 include_list=include/salome/SALOMEconfig.h include/salome/config.h
112 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
115 ifeq ($(HAVE_SSTREAM),yes)
116 include_list=include/salome/SALOMEconfig.h
118 include_list=include/salome/SALOMEconfig.h include/salome/sstream
122 inc: idl $(include_list)
124 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
128 # test if SALOMEconfig.h has changed (contents)
129 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
130 @if ! [ -a $@ ]; then \
133 if ! cmp $< $@; then \
137 include/salome/config.h: salome_adm/unix/config.h
141 include/salome/sstream: salome_adm/unix/sstream
148 (cd idl ; $(MAKE) $@) || exit 1
150 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
152 # (cd doc && $(MAKE) $@) || exit 1
154 # Install make_commence make_conclude ... for other modules
156 ($(INSTALL) -d $(incmakedir) || exit 1);
157 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
158 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
162 # finish libtool install
163 # @$(LT) --mode=finish $(libdir)
165 install-include: $(include_list)
166 $(INSTALL) -d $(includedir)
167 @for f in X $(include_list); do \
168 if test $$f != X; then \
169 (cp -p $$f $(includedir) || exit 1); \
173 # install script in $(bindir) :
174 install-bin: $(BIN_SCRIPT)
175 $(INSTALL) -d $(bindir)
176 $(INSTALL_PROGRAM) $^ $(bindir)
178 uninstall: uninstall-idl
181 $(RM) $(idldir)/*.idl
183 distclean: distclean-other
186 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
187 -$(RM) salome_adm/unix/make_*
188 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
189 -$(RM) config.cache config.log config.status
193 install: install-bin install-include install-make install-end