3 # Author : Patrick GOLDBRONN (CEA)
9 top_srcdir=@top_srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
17 SUBDIRS = idl src examples salome_adm
24 CatalogRessources.xml \
40 Application-Logo.png \
41 Application-Splash.png \
42 Application-About.png \
50 view_camera_dump.png \
97 # copy header files in common directory
98 ifeq ($(HAVE_SSTREAM),yes)
99 include_list=include/salome/SALOMEconfig.h
101 include_list=include/salome/SALOMEconfig.h include/salome/sstream
104 inc: idl $(include_list)
106 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
110 # test if SALOMEconfig.h has changed (contents)
111 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
112 @if ! [ -a $@ ]; then \
115 if ! cmp $< $@; then \
119 include/salome/sstream: salome_adm/unix/sstream
126 (cd idl ; $(MAKE) $@) || exit 1
128 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
130 # (cd doc && $(MAKE) $@) || exit 1
132 # Install make_commence make_conclude ... for other modules
134 ($(INSTALL) -d $(incmakedir) || exit 1);
135 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
136 (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
140 # finish libtool install
141 # @$(LT) --mode=finish $(libdir)
143 install-include: $(include_list)
144 $(INSTALL) -d $(includedir)
145 @for f in X $(include_list); do \
146 if test $$f != X; then \
147 (cp -p $$f $(includedir) || exit 1); \
151 # install script in $(bindir) :
152 install-bin: $(BIN_SCRIPT)
153 $(INSTALL) -d $(bindir)
154 for f in X $(BIN_SCRIPT); do \
155 if test $$f != X; then \
156 (cp -p ./bin/$$f $(bindir) || exit 1); \
160 uninstall: uninstall-idl
163 $(RM) $(idldir)/*.idl
165 distclean: distclean-other
168 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
169 -$(RM) salome_adm/unix/make_*
170 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
171 -$(RM) config.cache config.log config.status
175 install: install-bin install-include install-make install-end