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 \
34 killSalomeWithPort.py \
39 launchConfigureParser.py \
46 # copy header files in common directory
47 OWN_CONFIG_H=@OWN_CONFIG_H@
49 ifeq ($(OWN_CONFIG_H),yes)
50 ifeq ($(HAVE_SSTREAM),yes)
51 include_list=include/salome/SALOMEconfig.h include/salome/config.h
53 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
56 ifeq ($(HAVE_SSTREAM),yes)
57 include_list=include/salome/SALOMEconfig.h
59 include_list=include/salome/SALOMEconfig.h include/salome/sstream
63 inc: idl $(include_list)
65 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
69 # test if SALOMEconfig.h has changed (contents)
70 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
71 @if ! [ -a $@ ]; then \
74 if ! cmp $< $@; then \
78 include/salome/config.h: salome_adm/unix/config.h
82 include/salome/sstream: salome_adm/unix/sstream
89 (cd idl ; $(MAKE) $@) || exit 1
91 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
93 # (cd doc && $(MAKE) $@) || exit 1
95 # Install make_commence make_conclude ... for other modules
97 ($(INSTALL) -d $(incmakedir) || exit 1);
98 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
99 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
103 # finish libtool install
104 # @$(LT) --mode=finish $(libdir)
106 install-include: $(include_list)
107 $(INSTALL) -d $(includedir)
108 @for f in X $(include_list); do \
109 if test $$f != X; then \
110 (cp -p $$f $(includedir) || exit 1); \
114 # install script in $(bindir) :
116 $(INSTALL) -d $(bindir)
117 cp -rp $(top_builddir)/bin/salome/appliskel $(bindir)
119 install-bin: $(BIN_SCRIPT)
120 $(INSTALL) -d $(bindir)
121 $(INSTALL_PROGRAM) $^ $(bindir)
123 # install Plugin file
124 install-plugin: $(top_builddir)/share/salome/resources/Plugin
125 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
127 uninstall: uninstall-idl
130 $(RM) $(idldir)/*.idl
132 distclean: distclean-other
135 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
136 -$(RM) salome_adm/unix/make_*
137 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
138 -$(RM) config.cache config.log config.status
142 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
145 resources: $(top_builddir)/share/salome/resources/Plugin
147 install: install-bin install-appliskel install-include install-make install-plugin install-end