1 ###############################################################
3 # Author : Vadim SANDLER (OCN)
5 # Copyright (C) 2005 Open CASCADE
6 ###############################################################
9 top_srcdir=@top_srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
16 SUBDIRS = idl src adm_local
19 SIERPINSKYCatalog.xml \
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) -p $$f $(includedir)/. || exit 1); \
75 # install script in $(bindir) :
76 install-bin: $(BIN_SCRIPT)
77 $(INSTALL) -d $(bindir)
78 $(INSTALL_PROGRAM) $^ $(bindir)
80 uninstall: uninstall-idl
85 distclean: distclean-other
88 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
89 -$(RM) salome_adm/unix/make_*
90 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
91 -$(RM) config.cache config.log config.status
95 install: install-bin install-include install-end