# Makefile tail for CCP4 top level. This will be modified by configure. # $Header: /ccpdisk/xtal/CVSROOT/ccp4/Makefile.in,v 1.34 2002/07/10 16:33:48 pjx Exp $ SHELL = /bin/sh DIRS = $(lapackdir) $(ccifdir) lib/src src lib/data unsupported/src x-windows # this is for the benefit of makes that don't pass variable values in # recursive invocations, so that you can override these values on the # command line at the top level # Note: usually not needed with recent versions of make (e.g. GNU # make). It actually can make it quite difficult to pass overall # flags down if we set it here explicitely!. # (Clemens Vonrhein) #MVARS = libdir=$(libdir) bindir=$(bindir) FC="$(FC)" CC="$(CC)" \ # XFFLAGS="$(XFFLAGS)" FOPTIM="$(FOPTIM)" XLDFLAGS=$(XLDFLAGS) \ # CFLAGS="$(CFLAGS)" LNS="$(LNS)" M4="$(M4)" F=$F all : supported unsupported datadir htmldir xwindir # use this if you only want the library, not the contents of src onlylib: datadir .PHONY : src data lib clean install realclean dist # the FORCE doesn't have the desired effect on convex, hence libdir # etc., rather than lib... lapacklib : FORCE if test -n "$(lapackdir)"; then cd $(top_srcdir)/lib/lapack; \ $(MAKE); else true; fi cciflib : FORCE if test -n "$(ccifdir)"; then cd $(ccifdir); \ $(MAKE); else true; fi libdir : FORCE lapacklib cciflib cd lib/src; $(MAKE) $(MFLAGS) $(MVARS) srcdir : FORCE libdir if test -d src; then cd src; $(MAKE) $(MFLAGS) $(MVARS); else true; fi supported : srcdir unsupported : FORCE libdir if test -d unsupported/src; then cd unsupported/src; \ $(MAKE) $(MFLAGS) $(MVARS); else true; fi datadir : FORCE libdir cd lib/data; $(MAKE) $(MFLAGS) $(MVARS) xwindir : FORCE libdir if test -f x-windows/Makefile; then cd x-windows; \ $(MAKE) -i $(MFLAGS) ; else true; fi htmldir : FORCE srcdir cd html; ./makeman.csh ; cd AstexViewer_man ; ./make_examples.csh empty-targets : FORCE cd src; $(MAKE) $(MFLAGS) $(MVARS) empty-targets if test -f unsupported/src/Makefile; then \ cd unsupported/src/; $(MAKE) $(MFLAGS) $(MVARS) $@; else true; fi if test -f x-windows/Makefile; then \ cd x-windows/; $(MAKE) $(MFLAGS) $(MVARS) $@; else true; fi clean install uninstall : for i in $(DIRS) ; do (if test -f $$i/Makefile; then \ if test $$i=x-windows; then \ cd $$i; $(MAKE) -i $(MFLAGS) $@; \ else cd $$i; $(MAKE) $(MFLAGS) $(MVARS) $@; fi; \ else true; fi) ; done realclean : clean # should probably remove created directories eventually, too for i in $(DIRS) ; do (if test -f $$i/Makefile; then \ cd $$i; $(MAKE) $(MFLAGS) $(MVARS) realclean; else true; fi) ;\ done distclean : realclean for i in $(DIRS) ; do (if test -f $$i/Makefile; then \ cd $$i; $(MAKE) $(MFLAGS) $(MVARS) distclean; else true; fi) ; done -rm -f Makefile config.status testlib : ; cd lib/src; $(MAKE) $(MFLAGS) $(MVARS) test Makefile : $(top_srcdir)/Makefile.in $(top_srcdir)/src/Makefile.in \ $(top_srcdir)/lib/src/Makefile.in config.status # convex sh doesn't have unset, sigh, but MAKE is set in config.status anyhow. # this will report that unset isn't found on convex, but carry on OK -unset MAKE; ./config.status FORCE : ; # Local Variables: # mode:makefile # End: