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 doc salome_adm
22 CatalogResources.xml \
34 killSalomeWithPort.py \
39 launchConfigureParser.py \
47 # copy header files in common directory
48 OWN_CONFIG_H=@OWN_CONFIG_H@
50 ifeq ($(OWN_CONFIG_H),yes)
51 ifeq ($(HAVE_SSTREAM),yes)
52 include_list=include/salome/SALOMEconfig.h include/salome/config.h
54 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
57 ifeq ($(HAVE_SSTREAM),yes)
58 include_list=include/salome/SALOMEconfig.h
60 include_list=include/salome/SALOMEconfig.h include/salome/sstream
64 inc: idl $(include_list)
66 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
70 # test if SALOMEconfig.h has changed (contents)
71 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
72 @if ! [ -a $@ ]; then \
75 if ! cmp $< $@; then \
79 include/salome/config.h: salome_adm/unix/config.h
83 include/salome/sstream: salome_adm/unix/sstream
90 (cd idl ; $(MAKE) $@) || exit 1
92 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
94 # (cd doc && $(MAKE) $@) || exit 1
96 # Install make_commence make_conclude ... for other modules
98 ($(INSTALL) -d $(incmakedir) || exit 1);
99 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
100 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
104 # finish libtool install
105 # @$(LT) --mode=finish $(libdir)
107 install-include: $(include_list)
108 $(INSTALL) -d $(includedir)
109 @for f in X $(include_list); do \
110 if test $$f != X; then \
111 (cp -p $$f $(includedir) || exit 1); \
115 # install script in $(bindir) :
117 $(INSTALL) -d $(bindir)
118 if test -d $(top_builddir)/bin/salome/appliskel; then \
119 cp -rp $(top_builddir)/bin/salome/appliskel $(bindir); \
122 install-bin: $(BIN_SCRIPT)
123 $(INSTALL) -d $(bindir)
124 $(INSTALL_PROGRAM) $^ $(bindir)
126 # install Plugin file
127 install-plugin: $(top_builddir)/share/salome/resources/Plugin
128 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
130 uninstall: uninstall-idl
133 $(RM) $(idldir)/*.idl
135 distclean: distclean-other
138 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
139 -$(RM) salome_adm/unix/make_*
140 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
141 -$(RM) config.cache config.log config.status
145 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
148 resources: $(top_builddir)/share/salome/resources/Plugin
150 install: install-bin install-appliskel install-include install-make install-plugin install-end