3 # Author : Patrick GOLDBRONN (CEA)
9 top_srcdir=@top_srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
31 # copy header files in common directory
32 ifeq ($(HAVE_SSTREAM),yes)
33 include_list=include/salome/SALOMEconfig.h
35 include_list=include/salome/SALOMEconfig.h include/salome/sstream
38 inc: idl $(include_list)
40 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
44 # test if SALOMEconfig.h has changed (contents)
45 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
46 @if ! [ -a $@ ]; then \
49 if ! cmp $< $@; then \
53 include/salome/sstream: salome_adm/unix/sstream
60 (cd idl ; $(MAKE) $@) || exit 1
62 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
64 # (cd doc && $(MAKE) $@) || exit 1
67 # finish libtool install
68 # @$(LT) --mode=finish $(libdir)
70 install-include: $(include_list)
71 $(INSTALL) -d $(includedir)
72 @for f in X $(include_list); do \
73 if test $$f != X; then \
74 ($(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
78 # install script in $(bindir) :
79 install-bin: $(BIN_SCRIPT)
80 $(INSTALL) -d $(bindir)
81 if test $(BIN_SCRIPT)X != X; then \
82 $(INSTALL_PROGRAM) $^ $(bindir); \
85 uninstall: uninstall-idl
90 distclean: distclean-other
93 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
94 -$(RM) salome_adm/unix/make_*
95 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
96 -$(RM) config.cache config.log config.status
100 install: install-bin install-include install-end