Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: tags/R-trunk-u…
Fetching contributors…

Cannot retrieve contributors at this time

113 lines (97 sloc) 2.954 kb
#
# ${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 = KEYWORDS KEYWORDS.db
DISTFILES = Makefile.in $(INSTFILES) R.1 R.aux
SUBDIRS = html manual
HELP2MAN = $(PERL) $(top_srcdir)/tools/help2man.pl
all: Makefile R docs @MAINTAINER_MODE_TRUE@ maintainer-build
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status
R: Makefile
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
docs:
@(cd manual && $(MAKE) $@)
install: install-message installdirs install-man
@for f in $(INSTFILES); do \
$(INSTALL_DATA) $(srcdir)/$${f} $(rhome)/$(subdir); \
done
@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) $(srcdir)/R.1 $(mandir)/man1
install-message:
@echo "installing $(subdir) ..."
install-strip: install
uninstall:
@echo "uninstalling $(subdir) ..."
@if test -d $(rhome)/$(subdir) \
&& test "`cd $(rhome); pwd`" != "`cd $(top_builddir); pwd`"; \
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
distclean: clean
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
@rm -f Makefile
maintainer-clean: distclean
@echo "This command is intended for maintainers to use; it"
@echo "deletes files that may need special rules to rebuild"
@rm -f $(srcdir)/R.1
maintainer-build: $(srcdir)/R.1
$(srcdir)/R.1: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/src/scripts/R.sh.in $(srcdir)/R.aux
@(cd $(top_builddir)/src/scripts && $(MAKE) R.fe)
@$(HELP2MAN) --include=$(srcdir)/R.aux --no-info --output=$@ \
--name="a language for data analysis and graphics" \
$(top_builddir)/src/scripts/R.fe
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 \
if test -f $${d}/Makefile; then \
test -d $(distdir)/$${d} \
|| mkdir $(distdir)/$${d} \
|| exit 1; \
chmod 755 $(distdir)/$${d}; \
(cd $${d} && $(MAKE) distdir) \
|| exit 1; \
else \
((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
fi; \
done
Jump to Line
Something went wrong with that request. Please try again.