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 \
46 # copy header files in common directory
48 include/salome/SALOMEconfig.h
50 inc: idl $(include_list)
52 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
56 # test if SALOMEconfig.h has changed (contents)
57 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
58 @if ! [ -a $@ ]; then \
61 if ! cmp $< $@; then \
68 (cd idl ; $(MAKE) $@) || exit 1
70 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
77 (cd doc && $(MAKE) $@) || exit 1
80 # Install make_commence make_conclude ... for other modules
82 ($(INSTALL) -d $(incmakedir) || exit 1);
83 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
84 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
88 # finish libtool install
89 # @$(LT) --mode=finish $(libdir)
91 install-include: $(include_list)
92 $(INSTALL) -d $(includedir)
93 @for f in X $(include_list); do \
94 if test $$f != X; then \
95 (cp -p $$f $(includedir) || exit 1); \
99 # install script in $(bindir) :
101 $(INSTALL) -d $(bindir)
102 if test -d $(top_builddir)/bin/salome/appliskel; then \
103 cp -rp $(top_builddir)/bin/salome/appliskel $(bindir); \
106 install-bin: $(BIN_SCRIPT)
107 $(INSTALL) -d $(bindir)
108 $(INSTALL_PROGRAM) $^ $(bindir)
110 # install Plugin file
111 install-plugin: $(top_builddir)/share/salome/resources/Plugin
112 ($(INSTALL_DATA) $^ $(datadir)/resources/. || exit 1); \
114 uninstall: uninstall-idl
117 $(RM) $(idldir)/*.idl
119 distclean: distclean-other
122 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
123 -$(RM) salome_adm/unix/make_*
124 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
125 -$(RM) config.cache config.log config.status
129 $(top_builddir)/share/salome/resources/Plugin: resources/Plugin
132 resources: $(top_builddir)/share/salome/resources/Plugin
134 install: install-bin install-appliskel install-include install-make install-plugin install-end