# Generated automatically from Makefile.in by configure. # $Id: Makefile.in,v 1.10 2003/12/12 17:38:31 robl Exp $ srcdir = . INSTALL = ./scripts/install-sh -c include macros.make PACKAGE = parallel-netcdf SUBDIRS = src/lib man DIST_GARBAGE = \ config.cache \ config.status PACKING_LIST = \ Makefile \ aclocal.m4 \ configure \ configure.in \ macros.make.in \ macros.make.def \ rules.make all: src/lib/all install: src/lib/install src/util/install uninstall: src/lib/uninstall clean: src/lib/clean test/clean distclean: src/lib/distclean \ clean_macros tests: @cd test && $(MAKE) testing: @cd test && $(MAKE) testing clean_macros: -cp macros.make.def macros.make # short names for making things in subdirs test/clean \ src/lib/all \ src/lib/test \ src/lib/install \ src/lib/uninstall \ src/lib/clean \ src/lib/distclean \ src/util/install \ src/util/clean \ : @subdir=`echo $@ | sed 's,/.*,,'`; \ target=`echo $@ | sed 's,.*/,,'`; \ $(MAKE) SUBDIR=$$subdir TGET=$$target subdir_target subdir_target: @echo "" @cd $(SUBDIR) && \ echo "Making \`$(TGET)' in directory `pwd`" && \ echo "" && \ $(MAKE) $(TGET) || exit 1 @echo "" @echo "Returning to directory `pwd`" @echo "" install: whatis whatis: $(MANDIR)/$(WHATIS) $(MANDIR)/$(WHATIS): $(MANDIR) $(MAKEWHATIS_CMD) uninstall: rm -f $(MANDIR)/$(WHATIS) ################################################################################ # Distribution: # The following rule checks to see that were on the right system. If we're # not, then the distribution mightn't contain the intended ncgen(1) (not # to mention that dvips(1) is necessary for building the C++ User's Guide). # check_system: FORCE @case "$(OVERRIDE)" in \ '') case `uname -sr` in \ 'SunOS 5'*) \ exit 0;; \ *) echo 1>&2 "Error: Not on a SunOS 5 system."; \ echo 1>&2 "Set macro OVERRIDE to override."; \ exit 1;; \ esac;; \ *) exit 0;; \ esac # Make a compressed, tar(1) file of the source distribution in the current # directory. # tar.Z: check_system FORCE @version=`cat VERSION`; \ $(MAKE) $(MFLAGS) $(PACKAGE)-$$version.tar.Z VERSION=$$version $(PACKAGE)-$(VERSION).tar.Z: ensure_manifest MANIFEST id=$(PACKAGE)-$(VERSION) \ && rm -rf $$id \ && mkdir $$id \ && ln -s .. $$id/src \ && tar $(TARFLAGS) - `sed "s|^|$$id/src/|" MANIFEST` | compress > $@ \ && rm -r $$id MANIFEST: FORCE $(MAKE) MANIFEST.echo >$@ # Make a compressed, tar(1) file of the source distribution in the # appropriate FTP directory. # # NOTE: Making "ftp" will cause the "tar.Z" file to be made even if it # already exists. This is because the MANIFEST file upon which it # depends must be remade every time. This is not a waste of time, # however, if the "tar.Z" target is made in private directories and the # "ftp" target is made in the "/upc/$(PACKAGE)/build/" directory. # ftp: check_system FORCE version=`cat VERSION`; \ $(MAKE) $(MFLAGS) $(FTPDIR)/$(PACKAGE)-$$version.tar.Z \ VERSION=$$version; \ test -r $(FTPDIR)/$(PACKAGE).tar.Z || exit 0; \ cd $(FTPDIR) || exit 1; $(FTPDIR)/$(PACKAGE)-$(VERSION).tar.Z: $(PACKAGE)-$(VERSION).tar.Z rm -f $@ cp $(PACKAGE)-$(VERSION).tar.Z $@ chmod u+rw,g+rw,o=r $@ # Make a compressed, tar(1) file of the binary distribution in the # appropriate FTP directory. # binftp: FORCE version=`cat VERSION`; \ $(MAKE) $(MFLAGS) $(FTPBINDIR)/$(PACKAGE)-$$version.tar.Z \ VERSION=$$version ftpbin: binftp $(FTPBINDIR)/$(PACKAGE)-$(VERSION).tar.Z: rm -f $@ id=$(PACKAGE)-$(VERSION) \ && rm -f $$id \ && ln -s $(prefix) $$id \ && tar $(TARFLAGS) - README $$id/bin $$id/include \ $$id/lib $$id/man | compress > $@ \ && rm $$id chmod u+rw,g+rw,o=r $@ test -r $(FTPBINDIR)/$(PACKAGE).tar.Z || exit 0; \ cd $(FTPBINDIR) || exit 1; # rule for generating cscope information cscope: find $(srcdir) -iname "*.[ch]" > $(srcdir)/cscope.files ( cd $(srcdir); cscope -be -i $(srcdir)/cscope.files ) include $(srcdir)/rules.make