3 # Author : Patrick GOLDBRONN (CEA)
8 top_srcdir=@top_srcdir@
11 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
35 # copy header files in common directory
36 ifeq ($(HAVE_SSTREAM),yes)
37 include_list=include/salome/SALOMEconfig.h
39 include_list=include/salome/SALOMEconfig.h include/salome/sstream
42 inc: idl $(include_list)
44 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
48 # test if SALOMEconfig.h has changed (contents)
49 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
50 @if ! [ -a $@ ]; then \
53 if ! cmp $< $@; then \
57 include/salome/sstream: salome_adm/unix/sstream
64 (cd idl ; $(MAKE) $@) || exit 1
66 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
68 # (cd doc && $(MAKE) $@) || exit 1
71 # finish libtool install
72 # @$(LT) --mode=finish $(libdir)
74 install-include: $(include_list)
75 $(INSTALL) -d $(includedir)
76 @for f in X $(include_list); do \
77 if test $$f != X; then \
78 ($(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
82 # install script in $(bindir) :
83 install-bin: $(BIN_SCRIPT)
84 $(INSTALL) -d $(bindir)
85 if test $(BIN_SCRIPT)X != X; then \
86 $(INSTALL_PROGRAM) $^ $(bindir); \
89 uninstall: uninstall-idl
94 distclean: distclean-other
97 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
98 -$(RM) salome_adm/unix/make_*
99 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
100 -$(RM) config.cache config.log config.status
104 install: install-bin install-include install-end