# # ${RHOME}/src/library/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../.. subdir = src/library include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = Makefile.in PKGS = base eda lqs modreg mva stepfun SUBDIRS = profile $(PKGS) all: Makefile R Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && \ CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ $(SHELL) ./config.status R: @$(MKINSTALLDIRS) $(top_builddir)/library @for pkg in $(PKGS) profile; do \ (cd $${pkg} && $(MAKE)) || exit 1; \ done @(cd $(top_builddir)/library; \ cat */TITLE > LibIndex 2> /dev/null) docs: stamp-docs help: stamp-help html: stamp-html latex: stamp-latex examples: stamp-examples stamp-docs: $(srcdir)/*/man/*.Rd $(top_builddir)/library/LibIndex @rm -f $@ stamp-help stamp-html stamp-latex stamp-examples @echo "Building ALL documentation (help, HTML, LaTeX, R-Examples)" @$(MAKE) DOCS @RHOME=`cd $(top_builddir); pwd`; export RHOME; \ $${RHOME}/bin/build-help --htmllists @touch $@ stamp-help stamp-html stamp-latex stamp-examples stamp-help: $(srcdir)/*/man/*.Rd $(top_builddir)/library/LibIndex @rm -f $@ @OPTS="--nroff" $(MAKE) DOCS @touch $@ stamp-html: $(srcdir)/*/man/*.Rd @rm -f $@ @OPTS="--html" $(MAKE) DOCS @RHOME=`cd $(top_builddir); pwd`; export RHOME; \ $${RHOME}/bin/build-help --htmllists @touch $@ stamp-latex: $(srcdir)/*/man/*.Rd @rm -f $@ @OPTS="--latex" $(MAKE) DOCS @touch $@ stamp-examples: $(srcdir)/*/man/*.Rd @rm -f $@ @OPTS="--example" $(MAKE) DOCS @touch $@ $(top_builddir)/library/LibIndex: @if [ ! -f $@ ]; then touch $@; fi DOCS: @for pkg in $(PKGS); do \ RHOME=`cd $(top_builddir); pwd`; export RHOME; \ $${RHOME}/bin/build-help $${OPTS} $(srcdir)/$${pkg}; \ $${RHOME}/bin/Rd2contents $(srcdir)/$${pkg} > $${RHOME}/library/$${pkg}/CONTENTS; \ done; \ cat $${RHOME}/library/*/CONTENTS > $${RHOME}/doc/html/search/index.txt mostlyclean: clean clean: @for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@); \ done @rm -f stamp-* distclean: @for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@); \ done @rm -f Makefile maintainer-clean: distclean install install-strip uninstall TAGS info dvi check:: distdir: $(DISTFILES) @for f in $(DISTFILES); do \ test -f $(distdir)/$${f} \ || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \ || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \ done @for d in $(SUBDIRS); do \ test -d $(distdir)/$${d} \ || mkdir $(distdir)/$${d} \ || exit 1; \ chmod 755 $(distdir)/$${d}; \ (cd $${d} && $(MAKE) distdir) \ || exit 1; \ done