Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: tags/R-Tk-upda…
Fetching contributors…

Cannot retrieve contributors at this time

128 lines (114 sloc) 3.756 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)
DISTFILES = Makefile.in KEYWORDS KEYWORDS.db R.1 R.aux
SUBDIRS = html manual
HELP2MAN = $(top_builddir)/tools/help2man
all docs: 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)/doc/html/search
@cat $(srcdir)/html/search/SearchEngine-head.html > \
$(top_builddir)/doc/html/search/SearchEngine.html
@-$(top_builddir)/tools/keywords2html $(srcdir)/KEYWORDS.db >> \
$(top_builddir)/doc/html/search/SearchEngine.html
@cat $(srcdir)/html/search/SearchEngine-foot.html >> \
$(top_builddir)/doc/html/search/SearchEngine.html
@if [ "$(srcdir)" != "." ]; then \
$(MAKE) rhome=$(top_builddir) install-html; \
(cd manual && $(MAKE) $@); \
fi
install: install-message installdirs install-html install-man
@for f in KEYWORDS KEYWORDS.db; do \
$(INSTALL_DATA) $(srcdir)/$${f} $(rhome)/doc; \
done
@(cd manual && $(MAKE) $@)
installdirs:
@$(MKINSTALLDIRS) $(mandir)/man1
@$(MKINSTALLDIRS) $(rhome)/doc/manual
@$(MKINSTALLDIRS) $(rhome)/doc/html/search
install-html:
@for f in $(srcdir)/html/*.html \
$(srcdir)/html/*.jpg \
$(srcdir)/html/*.css; do \
$(INSTALL_DATA) $${f} $(rhome)/doc/html; \
done
@for f in $(srcdir)/html/search/*.class \
$(srcdir)/html/search/*.html; do \
$(INSTALL_DATA) $${f} $(rhome)/doc/html/search; \
done
@if test -f $(top_builddir)/doc/html/search/index.txt \
-a "$(top_builddir)" != "$(rhome)"; then \
$(INSTALL_DATA) $(top_builddir)/doc/html/search/index.txt \
$(rhome)/doc/html/search; \
fi
install-man:
@$(INSTALL_DATA) $(srcdir)/R.1 $(mandir)/man1
install-message:
@echo "installing doc ..."
install-strip: install
uninstall:
@echo "uninstalling doc ..."
@if test -d $(rhome)/doc -a \
"`cd $(rhome); pwd`" != "`cd $(top_builddir); pwd`"; then \
(cd $(rhome)/doc && \
rm -rf html manual KEYWORDS*); \
rmdir $(rhome)/doc 2> /dev/null \
|| echo " subdir doc not removed"; \
fi
@rm -f $(mandir)/man1/R.1
dvi info pdf::
@(cd manual && $(MAKE) $@)
mostlyclean:
clean:
@if [ "$(srcdir)" != "." ]; then \
rm -rf html; \
else \
rm -f html/function.html \
html/packages.html \
html/search/index.txt; \
fi
@(cd manual && $(MAKE) $@)
distclean: clean
@(cd manual && $(MAKE) $@)
@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 R.1
maintainer-build: $(srcdir)/R.1
$(srcdir)/R.1: $(top_srcdir)/src/scripts/R.sh.in $(srcdir)/R.aux
@sed "s@R_HOME_DIR*@`cd $(top_builddir); pwd`@" \
< $(top_srcdir)/src/scripts/R.sh.in > $(top_builddir)/bin/R
@$(HELP2MAN) --include=$(srcdir)/R.aux --no-info --output=$@ \
--name="a language for data analysis and graphics" \
$(top_builddir)/bin/R
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.