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 \
103 # copy header files in common directory
104 OWN_CONFIG_H=@OWN_CONFIG_H@
106 ifeq ($(OWN_CONFIG_H),yes)
107 ifeq ($(HAVE_SSTREAM),yes)
108 include_list=include/salome/SALOMEconfig.h include/salome/config.h
110 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
113 ifeq ($(HAVE_SSTREAM),yes)
114 include_list=include/salome/SALOMEconfig.h
116 include_list=include/salome/SALOMEconfig.h include/salome/sstream
120 inc: idl $(include_list)
122 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
126 # test if SALOMEconfig.h has changed (contents)
127 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
128 @if ! [ -a $@ ]; then \
131 if ! cmp $< $@; then \
135 include/salome/config.h: salome_adm/unix/config.h
139 include/salome/sstream: salome_adm/unix/sstream
146 (cd idl ; $(MAKE) $@) || exit 1
148 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
150 # (cd doc && $(MAKE) $@) || exit 1
152 # Install make_commence make_conclude ... for other modules
154 ($(INSTALL) -d $(incmakedir) || exit 1);
155 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
156 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
160 # finish libtool install
161 # @$(LT) --mode=finish $(libdir)
163 install-include: $(include_list)
164 $(INSTALL) -d $(includedir)
165 @for f in X $(include_list); do \
166 if test $$f != X; then \
167 (cp -p $$f $(includedir) || exit 1); \
171 # install script in $(bindir) :
172 install-bin: $(BIN_SCRIPT)
173 $(INSTALL) -d $(bindir)
174 $(INSTALL_PROGRAM) $^ $(bindir)
176 uninstall: uninstall-idl
179 $(RM) $(idldir)/*.idl
181 distclean: distclean-other
184 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
185 -$(RM) salome_adm/unix/make_*
186 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
187 -$(RM) config.cache config.log config.status
191 install: install-bin install-include install-make install-end