# # ${R_HOME}/doc/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. subdir = doc include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) INSTFILES = CRAN_mirrors.csv KEYWORDS KEYWORDS.db DISTFILES = Makefile.in $(INSTFILES) R.aux NON_SVN_INSTFILES = R.1 SUBDIRS = html manual HELP2MAN = $(PERL) $(top_srcdir)/tools/help2man.pl all: Makefile R docs Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ R: Makefile svnonly @for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@) || exit 1; \ done @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \ $(MAKE) rhome=$(top_builddir) install-sources; \ fi docs: @(cd manual && $(MAKE) $@) install: install-message installdirs install-sources install-man @for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@) || exit 1; \ done installdirs: @$(MKINSTALLDIRS) "$(rhome)/$(subdir)" @$(MKINSTALLDIRS) $(mandir)/man1 install-man: @rm -f $(mandir)/man1/R.1 @$(INSTALL_DATA) R.1 $(mandir)/man1 install-message: @echo "installing $(subdir) ..." install-sources: @for f in $(INSTFILES); do \ $(INSTALL_DATA) $(srcdir)/$${f} "$(rhome)/$(subdir)"; \ done install-strip: install uninstall: @echo "uninstalling $(subdir) ..." @if test -d "$(rhome)/$(subdir)" \ && test "`cd \"$(rhome)\"; $(GETWD)`" \ != "`cd $(top_builddir); $(GETWD)`"; then \ for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@) || exit 1; \ done; \ for f in $(INSTFILES); do \ rm -f "$(rhome)/$(subdir)"/$${f}; \ done; \ rmdir "$(rhome)/$(subdir)" 2>/dev/null \ || echo " subdir $(subdir) not removed"; \ fi @rm -f $(mandir)/man1/R.1 dvi info pdf:: @(cd manual && $(MAKE) $@) mostlyclean: clean: @for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@); \ done @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \ rm -f $(INSTFILES) R.1; \ fi distclean: clean @for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@) || exit 1; \ done @if test -f non-tarball ; then \ rm -f R.1 non-tarball ; \ fi -@rm -f Makefile maintainer-clean: distclean svnonly: @if test ! -f "$(srcdir)/R.1" ; then \ (cd $(top_builddir)/src/scripts && $(MAKE) R.fe) ; \ $(HELP2MAN) --include=$(srcdir)/R.aux --no-info --output=R.1 \ --name="a language for data analysis and graphics" \ $(top_builddir)/src/scripts/R.fe ; \ touch non-tarball ; \ else \ if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \ for f in $(NON_SVN_INSTFILES); do \ $(INSTALL_DATA) $(srcdir)/$${f} "$(rhome)/$(subdir)"; \ done \ fi \ fi 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