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 CatalogRessources.xml \
33 killSalomeWithPort.py \
37 launchConfigureParser.py \
43 # copy header files in common directory
44 OWN_CONFIG_H=@OWN_CONFIG_H@
46 ifeq ($(OWN_CONFIG_H),yes)
47 ifeq ($(HAVE_SSTREAM),yes)
48 include_list=include/salome/SALOMEconfig.h include/salome/config.h
50 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
53 ifeq ($(HAVE_SSTREAM),yes)
54 include_list=include/salome/SALOMEconfig.h
56 include_list=include/salome/SALOMEconfig.h include/salome/sstream
60 inc: idl $(include_list)
62 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
66 # test if SALOMEconfig.h has changed (contents)
67 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
68 @if ! [ -a $@ ]; then \
71 if ! cmp $< $@; then \
75 include/salome/config.h: salome_adm/unix/config.h
79 include/salome/sstream: salome_adm/unix/sstream
86 (cd idl ; $(MAKE) $@) || exit 1
88 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
90 # (cd doc && $(MAKE) $@) || exit 1
92 # Install make_commence make_conclude ... for other modules
94 ($(INSTALL) -d $(incmakedir) || exit 1);
95 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
96 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
100 # finish libtool install
101 # @$(LT) --mode=finish $(libdir)
103 install-include: $(include_list)
104 $(INSTALL) -d $(includedir)
105 @for f in X $(include_list); do \
106 if test $$f != X; then \
107 (cp -p $$f $(includedir) || exit 1); \
111 # install script in $(bindir) :
112 install-bin: $(BIN_SCRIPT)
113 $(INSTALL) -d $(bindir)
114 $(INSTALL_PROGRAM) $^ $(bindir)
116 # install Plugin file
117 install-plugin: $(top_builddir)/resources/Plugin
118 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
120 uninstall: uninstall-idl
123 $(RM) $(idldir)/*.idl
125 distclean: distclean-other
128 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
129 -$(RM) salome_adm/unix/make_*
130 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
131 -$(RM) config.cache config.log config.status
135 install: install-bin install-include install-make install-plugin install-end