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
19 ifeq ($(GUI_DISABLE_CORBA),no)
23 SUBDIRS+= doc adm_local
47 view_camera_dump.png \
87 # copy header files in common directory
88 OWN_CONFIG_H=@OWN_CONFIG_H@
90 ifeq ($(OWN_CONFIG_H),yes)
91 ifeq ($(HAVE_SSTREAM),yes)
92 include_list=include/salome/SALOMEconfig.h include/salome/config.h
94 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
97 ifeq ($(HAVE_SSTREAM),yes)
98 include_list=include/salome/SALOMEconfig.h
100 include_list=include/salome/SALOMEconfig.h include/salome/sstream
104 inc: idl $(include_list)
106 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
110 # test if SALOMEconfig.h has changed (contents)
111 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
112 @if ! [ -a $@ ]; then \
115 if ! cmp $< $@; then \
119 include/salome/config.h: salome_adm/unix/config.h
123 include/salome/sstream: salome_adm/unix/sstream
130 (cd idl ; $(MAKE) $@) || exit 1
132 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
134 # (cd doc && $(MAKE) $@) || exit 1
136 # Install make_commence make_conclude ... for other modules
138 ($(INSTALL) -d $(incmakedir) || exit 1);
139 (sed 's/^prefix=/#prefix=/' $(top_builddir)/adm_local/unix/make_commence > $(incmakedir)/make_commence || exit 1);
143 # finish libtool install
144 # @$(LT) --mode=finish $(libdir)
146 install-include: $(include_list)
147 $(INSTALL) -d $(includedir)
148 @for f in X $(include_list); do \
149 if test $$f != X; then \
150 (cp -p $$f $(includedir) || exit 1); \
154 # install script in $(bindir) :
155 install-bin: $(BIN_SCRIPT)
156 $(INSTALL) -d $(bindir)
157 $(INSTALL_PROGRAM) $^ $(bindir)
159 uninstall: uninstall-idl
162 $(RM) $(idldir)/*.idl
164 distclean: distclean-other
167 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
168 -$(RM) salome_adm/unix/make_*
169 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
170 -$(RM) config.cache config.log config.status
174 install: install-bin install-include install-make install-end