# Makefile for moving the mrbump executable scripts from the mrbump bin directory # to the CCP4 bin directory ##### variable definitions ###### # The following variables are expected to be set by configure: # top_srcdir bindir FC FFLAGS CC CFLAGS INSTALL_PROGRAM SHELL = /bin/sh DESTDIR = $(prefix) DIRS = ccp4i MRBUMP_BINDIR = $(top_srcdir)/share/mrbump/bin MRBUMP_TARGETS = mrbump pydbviewer BALBES_BINDIR = $(top_srcdir)/share/BALBES/Package/bin_py BALBES_TARGETS = balbes DIMPLE_BINDIR = $(top_srcdir)/share/edna/dimplev0/bin DIMPLE_TARGETS = dimple AMPLE_BINDIR = $(top_srcdir)/share/ample/bin AMPLE_TARGETS = ample .PHONY : all-recursive install-recursive all-recursive: target=`echo $@ | sed s/-recursive//`; \ list='$(DIRS)'; for subdir in $$list; do \ if test -d $$subdir ; then \ echo "Making $$target in $$subdir"; \ (cd $$subdir && $(MAKE) $(MFLAGS) $$target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ fi \ done install-recursive: target=`echo $@ | sed s/-recursive//`; \ list='$(DIRS)'; for subdir in $$list; do \ if test -d $$subdir ; then \ echo "Installing $$target in $$subdir"; \ (cd $$subdir && $(MAKE) $(MFLAGS) $$target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ fi \ done install : install-recursive for i in $(MRBUMP_TARGETS); do \ test -s $(MRBUMP_BINDIR)/$$i && $(INSTALL_PROGRAM) $(MRBUMP_BINDIR)/$$i $(bindir)/$$i || true ;\ done for i in $(BALBES_TARGETS); do \ test -s $(BALBES_BINDIR)/$$i && $(INSTALL_PROGRAM) $(BALBES_BINDIR)/$$i $(bindir)/$$i || true ;\ done for i in $(DIMPLE_TARGETS); do \ test -s $(DIMPLE_BINDIR)/$$i && $(INSTALL_PROGRAM) $(DIMPLE_BINDIR)/$$i $(bindir)/$$i || true ;\ done for i in $(AMPLE_TARGETS); do \ test -s $(AMPLE_BINDIR)/$$i && $(INSTALL_PROGRAM) $(AMPLE_BINDIR)/$$i $(bindir)/$$i || true ;\ done clean : ; -rm -f core *.o *~ a.out realclean : clean distclean : realclean ; -rm -f Makefile uninstall : for i in $(MRBUMP_TARGETS); do \ rm -f $(bindir)/$$i ;\ done for i in $(BALBES_TARGETS); do \ rm -f $(bindir)/$$i ;\ done for i in $(DIMPLE_TARGETS); do \ rm -f $(bindir)/$$i ;\ done