Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: tags/R-0-64
Fetching contributors…

Cannot retrieve contributors at this time

116 lines (103 sloc) 3.168 kB
#
# ${RHOME}/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 = KEYWORDS R.1 Rdconv.1 keyword-test.in Makefile.in
SUBDIRS = html manual
all docs: Makefile keyword-test R
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status
keyword-test: $(srcdir)/keyword-test.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status
R:
@$(MKINSTALLDIRS) $(top_builddir)/doc/html/search
@if [ "$(srcdir)" != "." ]; then \
$(MAKE) rhome=$(top_builddir) install-html; \
(cd manual && $(MAKE) $@); \
fi
install: installdirs install-html install-man
@$(INSTALL) keyword-test $(rhome)/doc
@$(INSTALL_DATA) $(srcdir)/KEYWORDS $(rhome)/doc
@(cd manual && $(MAKE) $@)
installdirs:
@$(MKINSTALLDIRS) $(mandir)/man1
@$(MKINSTALLDIRS) $(rhome)/doc/manual
@$(MKINSTALLDIRS) $(rhome)/doc/html/search
install-html:
@echo "Installing doc ..."
@for f in $(srcdir)/html/*.html $(srcdir)/html/*.jpg; 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:
@echo "Installing man pages ..."
@(cd $(srcdir); \
for f in R.1 Rdconv.1; do \
$(INSTALL_DATA) $$f $(mandir)/man1; \
done)
@(cd $(mandir)/man1; \
for f in Rd2txt.1 Rdindex.1 Sd2Rd.1; do \
rm -f $$f; $(LN_S) Rdconv.1 $$f; \
done)
install-strip: install
uninstall:
@echo "Uninstalling doc ..."
@(cd $(rhome)/doc; \
rm -rf html manual KEYWORDS keyword-test)
@rmdir $(rhome)/doc 2> /dev/null \
|| echo " subdir doc not removed"
@echo "Uninstalling man pages ..."
@(cd $(mandir)/man1; \
rm -f R.1 Rdconv.1 Rd2txt.1 Rdindex.1 Sd2Rd.1)
dvi:
@(cd manual && $(MAKE) $@)
info:
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 keyword-test
maintainer-clean: distclean
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.