3 # Author : Patrick GOLDBRONN (CEA)
8 top_srcdir=@top_srcdir@
11 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
28 # copy header files in common directory
29 ifeq ($(HAVE_SSTREAM),yes)
30 include_list=include/salome/SALOMEconfig.h
32 include_list=include/salome/SALOMEconfig.h include/salome/sstream
35 inc: idl $(include_list)
37 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
41 # test if SALOMEconfig.h has changed (contents)
42 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
43 @if ! [ -a $@ ]; then \
46 if ! cmp $< $@; then \
50 include/salome/sstream: salome_adm/unix/sstream
57 (cd idl ; $(MAKE) $@) || exit 1
59 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
61 # (cd doc && $(MAKE) $@) || exit 1
64 # finish libtool install
65 # @$(LT) --mode=finish $(libdir)
67 install-include: $(include_list)
68 $(INSTALL) -d $(includedir)
69 @for f in X $(include_list); do \
70 if test $$f != X; then \
71 ($(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
75 # install script in $(bindir) :
76 install-bin: $(BIN_SCRIPT)
77 $(INSTALL) -d $(bindir)
78 if test $(BIN_SCRIPT)X != X; then \
79 $(INSTALL_PROGRAM) $^ $(bindir); \
82 uninstall: uninstall-idl
87 distclean: distclean-other
90 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
91 -$(RM) salome_adm/unix/make_*
92 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
93 -$(RM) config.cache config.log config.status
97 install: install-bin install-include install-end