# -* Makefile *- # # Author : Patrick GOLDBRONN (CEA) # Date : 28/06/2001 # $Header$ # # source path top_srcdir=@top_srcdir@ top_builddir=. srcdir=@srcdir@ VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl @COMMENCE@ SUBDIRS = idl src doc RESOURCES_FILES = \ components.png \ edit.png \ export.gif \ import.gif \ kill.png \ modify.png \ ModuleSupervision.png \ reload.png \ resources.png \ run.png \ steps.png \ SUPERV_en.xml \ SUPERV_fr.xml \ SUPERV.config \ SUPERVCatalog.xml \ suspend-resume.gif \ Superv_tree_superv.png BIN_SCRIPT= \ VERSION # copy header files in common directory ifeq ($(HAVE_SSTREAM),yes) include_list=include/salome/SALOMEconfig.h else include_list=include/salome/SALOMEconfig.h include/salome/sstream endif inc: idl $(include_list) include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref -$(RM) $@ $(LN_S) ../../$< $@ # test if SALOMEconfig.h has changed (contents) salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h @if ! [ -a $@ ]; then \ cp -p -f $< $@; \ fi; \ if ! cmp $< $@; then \ cp -p -f $< $@; \ fi; \ include/salome/sstream: salome_adm/unix/sstream -$(RM) $@ $(LN_S) ../../$< $@ depend: depend_idl depend_idl: (cd idl ; $(MAKE) $@) || exit 1 # doc is already build : if you want to had documents, go manually to doc and run 'make doc' #doc: # (cd doc && $(MAKE) $@) || exit 1 install-end: # finish libtool install # @$(LT) --mode=finish $(libdir) install-include: $(include_list) $(INSTALL) -d $(includedir) @for f in X $(include_list); do \ if test $$f != X; then \ ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \ fi; \ done # install script in $(bindir) : install-bin: $(BIN_SCRIPT) $(INSTALL) -d $(bindir) if test $(BIN_SCRIPT)X != X; then \ $(INSTALL_PROGRAM) $^ $(bindir); \ fi uninstall: uninstall-idl uninstall-idl: $(RM) $(idldir)/*.idl distclean: distclean-other distclean-other: -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old -$(RM) salome_adm/unix/make_* -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h -$(RM) config.cache config.log config.status @MODULE@ install: install-bin install-include install-end