Skip to content

HTTPS clone URL

Subversion checkout URL

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

Cannot retrieve contributors at this time

192 lines (174 sloc) 5.456 kB
#
# ${R_HOME}/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = .
include $(top_builddir)/Makeconf
distdir = $(PACKAGE)-$(VERSION)
INSTFILES = COPYING COPYRIGHTS FAQ MIRROR-SITES NEWS RESOURCES
DISTFILES = $(INSTFILES) \
BUGS INSTALL README VERSION Y2K \
Makeconf.in Makefile.in \
aclocal.m4 config.site configure configure.in \
date-stamp
SUBDIRS = src afm demos doc etc tests tools
GZIP = --best
all: Makefile Makeconf R docs
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
config.status: $(srcdir)/configure
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
cd $(srcdir) && autoconf
R:
@if [ "$(srcdir)" != "." ]; then \
for f in $(INSTFILES); do \
$(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
done; \
fi
@for d in tools afm doc etc src demos; do \
(cd $${d} && $(MAKE) R) || exit 1; \
done
@if [ ! -f src/library/stamp-docs ]; then \
echo "you should \`make docs' now ..."; \
fi
src/include/config.h: $(srcdir)/configure \
$(srcdir)/src/include/config.h.in
$(top_srcdir)/configure --srcdir $(top_srcdir) @config_opts@
docs help html latex examples:: FORCE
-@(cd src/library && $(MAKE) $@)
FORCE:
install: all installdirs
@for d in afm demos doc etc; do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
@(cd $(srcdir); \
for f in $(INSTFILES); do \
$(INSTALL_DATA) $${f} $(rhome); \
done)
@echo "installing executables ..."
@$(INSTALL_PROGRAM) bin/R.X11 $(rhome)/bin
@if test -x bin/R.GNOME; then \
$(INSTALL_PROGRAM) bin/R.GNOME $(rhome)/bin; \
fi
@sed "s@R_HOME=.*@R_HOME=$(rhome)\}@" < bin/R > $(rhome)/bin/R
@sed "s@R_HOME=.*@R_HOME=$(rhome)\}@" < bin/R > $(bindir)/R
@chmod 755 $(bindir)/R $(rhome)/bin/R
@for f in `ls bin/* | grep -v '^bin/R\**$$' \
| grep -v '^bin/R.X11\**$$' \
| grep -v '^bin/R.GNOME\**$$'`; do \
$(INSTALL) $${f} $(rhome)/bin; \
done
@echo "installing headers ..."
@for f in include/*.h; do \
$(INSTALL_DATA) $${f} $(rhome)/include; \
done
@for f in include/R_ext/*.h; do \
$(INSTALL_DATA) $${f} $(rhome)/include/R_ext; \
done
@echo "installing library ..."
@cp -r library $(rhome) || \
(cd library; \
$(TAR) cf - [a-z]* | (cd $(rhome)/library; $(TAR) xof -))
@echo " building help index ..."
@(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
@echo " building HTML index ..."
@$(rhome)/bin/build-help --rhome $(rhome) --htmllists
installdirs:
@$(MKINSTALLDIRS) $(bindir)
@$(MKINSTALLDIRS) $(rhome)/bin
@$(MKINSTALLDIRS) $(rhome)/include
@$(MKINSTALLDIRS) $(rhome)/include/R_ext
@$(MKINSTALLDIRS) $(rhome)/library
install-strip:
$(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
uninstall:
@echo "uninstalling library ..."
@(cd $(rhome)/library; \
for p in $(R_PKGS); do rm -rf $${p}; done)
@echo " rebuilding help index ..."
@(cd $(rhome)/library; \
cat */TITLE > LibIndex 2> /dev/null || echo "" > LibIndex)
@echo " rebuilding HTML index ..."
@if test -x $(rhome)/bin/build-help; then \
$(rhome)/bin/build-help --rhome $(rhome) --htmllists; \
fi
@echo "uninstalling headers ..."
@rm -rf $(rhome)/include
@echo "uninstalling executables ..."
@rm -rf $(rhome)/bin
@rm -f $(bindir)/R
@for f in $(INSTFILES); do \
rm -f $(rhome)/$${f}; \
done
@for d in afm demos doc etc; do \
(cd $${d} && $(MAKE) $@); \
done
mostlyclean: clean
clean:
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@); \
done
@if [ "$(srcdir)" != "." ]; then \
rm -f $(INSTFILES); \
fi
distclean: clean
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@); \
done
@rm -rf bin include library
@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
config.cache config.log config.status
maintainer-clean: distclean
@echo "This command is intended for maintainers to use; it"
@echo "deletes files that may need special rules to rebuild"
dist: dist-unix
dist-unix: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP) $(TAR) chzf $(distdir).tar.gz $(distdir)
rm -rf $(distdir)
dist-win:
distdir: $(DISTFILES)
@rm -rf $(distdir)
@mkdir $(distdir)
@-chmod 755 $(distdir)
@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
@for d in debian; do \
((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
done
dvi info pdf::
-@(cd doc && $(MAKE) $@)
install-dvi install-info install-pdf::
-@(cd doc/manual && $(MAKE) $@)
uninstall-dvi uninstall-info uninstall-pdf::
-@(cd doc/manual && $(MAKE) $@)
TAGS:
check test:: test-All
test-All test-Examples test-Specific::
@(cd tests && $(MAKE) $@)
check-force: test-All-force
test-All-force:
@(cd tests && $(MAKE) test-All FORCE=FORCE)
test-Examples-force:
@(cd tests && $(MAKE) test-Examples FORCE=FORCE)
test-Specific-force:
@(cd tests && $(MAKE) test-Specific FORCE=FORCE)
Jump to Line
Something went wrong with that request. Please try again.