1 ###############################################################
3 # Author : Vadim SANDLER (OCN)
5 # Copyright (C) 2005 Open CASCADE
6 ###############################################################
9 top_srcdir=@top_srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
17 SUBDIRS = idl src adm_local
20 SIERPINSKYCatalog.xml \
29 # copy header files in common directory
31 include_list = include/salome/SALOMEconfig.h \
32 include/salome/SIERPINSKY_version.h
34 ifneq ($(HAVE_SSTREAM),yes)
35 include_list += include/salome/sstream
38 inc: idl $(include_list)
40 bin: bin/salome/VERSION
42 bin/salome/VERSION : bin/VERSION
46 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
50 # test if SALOMEconfig.h has changed (contents)
51 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
52 @if ! [ -a $@ ]; then \
55 if ! cmp $< $@; then \
59 include/salome/sstream: salome_adm/unix/sstream
63 include/salome/SIERPINSKY_version.h: SIERPINSKY_version.h
70 (cd idl ; $(MAKE) $@) || exit 1
72 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
74 # (cd doc && $(MAKE) $@) || exit 1
77 # finish libtool install
78 # @$(LT) --mode=finish $(libdir)
80 install-include: $(include_list)
81 $(INSTALL) -d $(includedir)
82 @for f in X $(include_list); do \
83 if test $$f != X; then \
84 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
88 # install script in $(bindir) :
89 install-bin: $(BIN_SCRIPT)
90 $(INSTALL) -d $(bindir)
91 $(INSTALL_PROGRAM) $^ $(bindir)
93 uninstall: uninstall-idl
98 distclean: distclean-other
101 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
102 -$(RM) salome_adm/unix/make_*
103 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
104 -$(RM) config.cache config.log config.status
108 install: install-bin install-include install-end