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 CatalogRessources.xml \
40 Application-Logo.png \
41 Application-Splash.png \
42 Application-About.png \
50 view_camera_dump.png \
94 killSalomeWithPort.py \
98 launchConfigureParser.py \
102 # copy header files in common directory
103 OWN_CONFIG_H=@OWN_CONFIG_H@
105 ifeq ($(OWN_CONFIG_H),yes)
106 ifeq ($(HAVE_SSTREAM),yes)
107 include_list=include/salome/SALOMEconfig.h include/salome/config.h
109 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
112 ifeq ($(HAVE_SSTREAM),yes)
113 include_list=include/salome/SALOMEconfig.h
115 include_list=include/salome/SALOMEconfig.h include/salome/sstream
119 inc: idl $(include_list)
121 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
125 # test if SALOMEconfig.h has changed (contents)
126 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
127 @if ! [ -a $@ ]; then \
130 if ! cmp $< $@; then \
134 include/salome/config.h: salome_adm/unix/config.h
138 include/salome/sstream: salome_adm/unix/sstream
145 (cd idl ; $(MAKE) $@) || exit 1
147 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
149 # (cd doc && $(MAKE) $@) || exit 1
151 # Install make_commence make_conclude ... for other modules
153 ($(INSTALL) -d $(incmakedir) || exit 1);
154 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
155 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
159 # finish libtool install
160 # @$(LT) --mode=finish $(libdir)
162 install-include: $(include_list)
163 $(INSTALL) -d $(includedir)
164 @for f in X $(include_list); do \
165 if test $$f != X; then \
166 (cp -p $$f $(includedir) || exit 1); \
170 # install script in $(bindir) :
171 install-bin: $(BIN_SCRIPT)
172 $(INSTALL) -d $(bindir)
173 $(INSTALL_PROGRAM) $^ $(bindir)
175 uninstall: uninstall-idl
178 $(RM) $(idldir)/*.idl
180 distclean: distclean-other
183 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
184 -$(RM) salome_adm/unix/make_*
185 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
186 -$(RM) config.cache config.log config.status
190 install: install-bin install-include install-make install-end