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
41 view_camera_dump.png \
81 # copy header files in common directory
82 OWN_CONFIG_H=@OWN_CONFIG_H@
84 ifeq ($(OWN_CONFIG_H),yes)
85 ifeq ($(HAVE_SSTREAM),yes)
86 include_list=include/salome/SALOMEconfig.h include/salome/config.h
88 include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
91 ifeq ($(HAVE_SSTREAM),yes)
92 include_list=include/salome/SALOMEconfig.h
94 include_list=include/salome/SALOMEconfig.h include/salome/sstream
98 inc: idl $(include_list)
100 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
104 # test if SALOMEconfig.h has changed (contents)
105 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
106 @if ! [ -a $@ ]; then \
109 if ! cmp $< $@; then \
113 include/salome/config.h: salome_adm/unix/config.h
117 include/salome/sstream: salome_adm/unix/sstream
124 (cd idl ; $(MAKE) $@) || exit 1
126 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
128 # (cd doc && $(MAKE) $@) || exit 1
130 # Install make_commence make_conclude ... for other modules
132 ($(INSTALL) -d $(incmakedir) || exit 1);
133 (sed 's/^prefix=/#prefix=/' $(top_builddir)/adm_local/unix/make_commence > $(incmakedir)/make_commence || exit 1);
137 # finish libtool install
138 # @$(LT) --mode=finish $(libdir)
140 install-include: $(include_list)
141 $(INSTALL) -d $(includedir)
142 @for f in X $(include_list); do \
143 if test $$f != X; then \
144 (cp -p $$f $(includedir) || exit 1); \
148 # install script in $(bindir) :
149 install-bin: $(BIN_SCRIPT)
150 $(INSTALL) -d $(bindir)
151 $(INSTALL_PROGRAM) $^ $(bindir)
153 uninstall: uninstall-idl
156 $(RM) $(idldir)/*.idl
158 distclean: distclean-other
161 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
162 -$(RM) salome_adm/unix/make_*
163 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
164 -$(RM) config.cache config.log config.status
168 install: install-bin install-include install-make install-end