Permalink
Browse files

Makefile support for bundling recommended packages

git-svn-id: https://svn.r-project.org/R/trunk@21121 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
1 parent b9e5b0a commit 17300d7ebb175b7473237b6ce3f7a62f5454beba pd committed Sep 1, 2002
Showing with 94 additions and 2 deletions.
  1. +5 −0 Makefile.in
  2. +2 −1 configure
  3. +1 −0 configure.ac
  4. +1 −1 src/library/Makefile.in
  5. +85 −0 src/library/Recommended/Makefile.in
View
@@ -153,4 +153,9 @@ uninstall-dvi uninstall-info uninstall-pdf:
check:
@(cd tests && $(MAKE) $@)
+rsync-recommended:
+ @(cd src/library/Recommended && $(MAKE) rsync-update)
+reset-recommended:
+ @(cd src/library/Recommended && rm -f Timestamp && $(MAKE) Timestamp)
+
TAGS:
View
@@ -23541,7 +23541,7 @@ esac
ac_config_headers="$ac_config_headers src/include/config.h"
-ac_config_files="$ac_config_files Makeconf Makefile afm/Makefile doc/Makefile doc/html/Makefile doc/html/search/Makefile doc/manual/Makefile etc/Makefile etc/Makeconf etc/Renviron m4/Makefile share/Makefile src/Makefile src/appl/Makefile src/extra/Makefile src/extra/xdr/Makefile src/extra/zlib/Makefile src/include/Makefile src/include/Rmath.h src/include/R_ext/Makefile src/library/Makefile src/library/base/DESCRIPTION src/library/base/Makefile src/library/ctest/DESCRIPTION src/library/ctest/Makefile src/library/ctest/src/Makefile src/library/eda/DESCRIPTION src/library/eda/Makefile src/library/eda/src/Makefile src/library/lqs/DESCRIPTION src/library/lqs/Makefile src/library/lqs/src/Makefile src/library/methods/DESCRIPTION src/library/methods/Makefile src/library/methods/src/Makefile src/library/modreg/DESCRIPTION src/library/modreg/Makefile src/library/modreg/src/Makefile src/library/mva/DESCRIPTION src/library/mva/Makefile src/library/mva/src/Makefile src/library/nls/DESCRIPTION src/library/nls/Makefile src/library/nls/src/Makefile src/library/profile/Makefile src/library/stepfun/DESCRIPTION src/library/stepfun/Makefile src/library/splines/DESCRIPTION src/library/splines/Makefile src/library/splines/src/Makefile src/library/tcltk/DESCRIPTION src/library/tcltk/Makefile src/library/tcltk/src/Makefile src/library/tools/DESCRIPTION src/library/tools/Makefile src/library/ts/DESCRIPTION src/library/ts/Makefile src/library/ts/src/Makefile src/main/Makefile src/modules/Makefile src/modules/X11/Makefile src/modules/aqua/Makefile src/modules/gnome/Makefile src/modules/internet/Makefile src/modules/lapack/Makefile src/modules/vfonts/Makefile src/nmath/Makefile src/nmath/standalone/Makefile src/scripts/Makefile src/scripts/COMPILE src/scripts/INSTALL src/scripts/REMOVE src/scripts/R.sh src/scripts/Rdconv src/scripts/Rdindex src/scripts/Rprof src/scripts/SHLIB src/scripts/Sd2Rd src/scripts/build src/scripts/check src/scripts/f77 src/unix/Makefile tests/Makefile tests/Embedding/Makefile tests/Examples/Makefile tests/Native/Makefile tools/Makefile"
+ac_config_files="$ac_config_files Makeconf Makefile afm/Makefile doc/Makefile doc/html/Makefile doc/html/search/Makefile doc/manual/Makefile etc/Makefile etc/Makeconf etc/Renviron m4/Makefile share/Makefile src/Makefile src/appl/Makefile src/extra/Makefile src/extra/xdr/Makefile src/extra/zlib/Makefile src/include/Makefile src/include/Rmath.h src/include/R_ext/Makefile src/library/Recommended/Makefile src/library/Makefile src/library/base/DESCRIPTION src/library/base/Makefile src/library/ctest/DESCRIPTION src/library/ctest/Makefile src/library/ctest/src/Makefile src/library/eda/DESCRIPTION src/library/eda/Makefile src/library/eda/src/Makefile src/library/lqs/DESCRIPTION src/library/lqs/Makefile src/library/lqs/src/Makefile src/library/methods/DESCRIPTION src/library/methods/Makefile src/library/methods/src/Makefile src/library/modreg/DESCRIPTION src/library/modreg/Makefile src/library/modreg/src/Makefile src/library/mva/DESCRIPTION src/library/mva/Makefile src/library/mva/src/Makefile src/library/nls/DESCRIPTION src/library/nls/Makefile src/library/nls/src/Makefile src/library/profile/Makefile src/library/stepfun/DESCRIPTION src/library/stepfun/Makefile src/library/splines/DESCRIPTION src/library/splines/Makefile src/library/splines/src/Makefile src/library/tcltk/DESCRIPTION src/library/tcltk/Makefile src/library/tcltk/src/Makefile src/library/tools/DESCRIPTION src/library/tools/Makefile src/library/ts/DESCRIPTION src/library/ts/Makefile src/library/ts/src/Makefile src/main/Makefile src/modules/Makefile src/modules/X11/Makefile src/modules/aqua/Makefile src/modules/gnome/Makefile src/modules/internet/Makefile src/modules/lapack/Makefile src/modules/vfonts/Makefile src/nmath/Makefile src/nmath/standalone/Makefile src/scripts/Makefile src/scripts/COMPILE src/scripts/INSTALL src/scripts/REMOVE src/scripts/R.sh src/scripts/Rdconv src/scripts/Rdindex src/scripts/Rprof src/scripts/SHLIB src/scripts/Sd2Rd src/scripts/build src/scripts/check src/scripts/f77 src/unix/Makefile tests/Makefile tests/Embedding/Makefile tests/Examples/Makefile tests/Native/Makefile tools/Makefile"
@@ -24052,6 +24052,7 @@ do
"src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
"src/include/Rmath.h" ) CONFIG_FILES="$CONFIG_FILES src/include/Rmath.h" ;;
"src/include/R_ext/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/R_ext/Makefile" ;;
+ "src/library/Recommended/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/library/Recommended/Makefile" ;;
"src/library/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/library/Makefile" ;;
"src/library/base/DESCRIPTION" ) CONFIG_FILES="$CONFIG_FILES src/library/base/DESCRIPTION" ;;
"src/library/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/library/base/Makefile" ;;
View
@@ -1198,6 +1198,7 @@ AC_CONFIG_FILES(
src/include/Makefile
src/include/Rmath.h
src/include/R_ext/Makefile
+ src/library/Recommended/Makefile
src/library/Makefile
src/library/base/DESCRIPTION
src/library/base/Makefile
View
@@ -13,7 +13,7 @@ include $(top_builddir)/Makeconf
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in
-SUBDIRS = profile $(R_PKGS)
+SUBDIRS = profile $(R_PKGS) Recommended
PKGS = $(R_PKGS)
@@ -0,0 +1,85 @@
+#
+# ${R_HOME}/src/library/Recommended/Makefile
+
+VPATH = @srcdir@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+
+top_builddir = ../../..
+subdir = src/library/Recommended
+
+include $(top_builddir)/Makeconf
+
+distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+DISTFILES = Makefile.in
+R = $(top_builddir)/bin/R
+
+# This should probably get configure'd into Makeconf instead
+# It can point to a local mirror if there's no direct CRAN connection
+CRANREC = cran.r-project.org::CRAN/src/contrib/$(VERSION)/Recommended/
+
+CLEANFILES = $(EXPORTFILE)
+DISTCLEANFILES = Makefile
+
+all: Makefile Timestamp
+ find . -name '*.tar.gz' -newer Timestamp -exec $(R) CMD INSTALL {} \;
+ touch Timestamp
+
+.SUFFIXES:
+.SUFFIXES: .in
+
+.in:
+ @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+ @(for f in $(OBJECTS); do \
+ echo "$${f}: $(srcdir)/$${f}.in"; \
+ done) >> $@
+
+Timestamp:
+ touch $@
+ sleep 1
+ if [ $(BUILDDIR_IS_SRCDIR) = no ] ; then \
+ find $(srcdir) -name '*.tar.gz' -exec cp {} . \; ;\
+ fi
+ find . -name '*.tar.gz' -exec touch {} . \;
+
+R: $(OBJECTS)
+$(OBJECTS): $(top_builddir)/config.status
+
+# Notice that if we can't use -t on rsync because that defeats the
+# purpose of the Timestamp...
+rsync-update: Timestamp
+ rsync -rIz --delete --exclude=Makefile --exclude=Timestamp $(CRANREC) .
+
+install: installdirs
+installdirs:
+install-strip: install
+
+uninstall:
+
+mostlyclean: clean
+clean:
+ -@test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+ @test $(BUILDDIR_IS_SRCDIR) = yes || \
+ rm -f *.tar.gz \;
+distclean: clean
+ -@test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+ -@rm -f *.tar.gz
+maintainer-clean: distclean
+
+distdir: $(DISTFILES) rsync-update
+ @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 f in *.tar.gz; do \
+ test -f $(distdir)/$${f} \
+ || ln $${f} $(distdir)/$${f} 2>/dev/null \
+ || cp -p $${f} $(distdir)/$${f}; \
+ done
+
+## Automagically generated dependencies:
+

0 comments on commit 17300d7

Please sign in to comment.