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 \
45 # copy header files in common directory
46 OWN_CONFIG_H=@OWN_CONFIG_H@
48 ifeq ($(OWN_CONFIG_H),yes)
49 ifeq ($(HAVE_SSTREAM),yes)
50 include_list=include/salome/SALOMEconfig.h include/salome/config.h
52 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
55 ifeq ($(HAVE_SSTREAM),yes)
56 include_list=include/salome/SALOMEconfig.h
58 include_list=include/salome/SALOMEconfig.h include/salome/sstream
62 inc: idl $(include_list)
64 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
68 # test if SALOMEconfig.h has changed (contents)
69 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
70 @if ! [ -a $@ ]; then \
73 if ! cmp $< $@; then \
77 include/salome/config.h: salome_adm/unix/config.h
81 include/salome/sstream: salome_adm/unix/sstream
88 (cd idl ; $(MAKE) $@) || exit 1
90 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
92 # (cd doc && $(MAKE) $@) || exit 1
94 # Install make_commence make_conclude ... for other modules
96 ($(INSTALL) -d $(incmakedir) || exit 1);
97 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
98 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
102 # finish libtool install
103 # @$(LT) --mode=finish $(libdir)
105 install-include: $(include_list)
106 $(INSTALL) -d $(includedir)
107 @for f in X $(include_list); do \
108 if test $$f != X; then \
109 (cp -p $$f $(includedir) || exit 1); \
113 # install script in $(bindir) :
114 install-bin: $(BIN_SCRIPT)
115 $(INSTALL) -d $(bindir)
116 $(INSTALL_PROGRAM) $^ $(bindir)
118 # install Plugin file
119 install-plugin: $(top_builddir)/share/salome/resources/Plugin
120 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
122 uninstall: uninstall-idl
125 $(RM) $(idldir)/*.idl
127 distclean: distclean-other
130 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
131 -$(RM) salome_adm/unix/make_*
132 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
133 -$(RM) config.cache config.log config.status
137 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
140 resources: $(top_builddir)/share/salome/resources/Plugin
142 install: install-bin install-include install-make install-plugin install-end