# -* 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 RESOURCES_FILES = GHS3DPlugin.xml 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) ../../$< $@ # install script in $(bindir) : install-bin: $(BIN_SCRIPT) $(INSTALL) -d $(bindir) if test $(BIN_SCRIPT)X != X; then \ $(INSTALL_PROGRAM) $^ $(bindir); \ fi # CLEAN -------------------- 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