The R Project SVN R

Rev

Rev 4004 | Rev 5234 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#
# ${R_HOME}/src/library/base/Makefile

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@

top_builddir = ../../..
subdir = src/library/base

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = INDEX TITLE Makefile.in

all:
    @echo Building R base package
    @$(MKINSTALLDIRS) $(top_builddir)/library/base/R
    @cat `ls $(srcdir)/R/*.R | sed '/system.*/d'` \
         $(srcdir)/R/system.unix.R | \
     sed '/^[   ]*$$/d'  > $(top_builddir)/library/base/R/base
#          ^^ = TAB + Space
    @$(INSTALL_DATA) $(srcdir)/INDEX $(top_builddir)/library/base
    @$(INSTALL_DATA) $(srcdir)/TITLE $(top_builddir)/library/base
    @$(MKINSTALLDIRS) $(top_builddir)/library/base/data
    @for f in `ls -d $(srcdir)/data/* | sed '/CVS/d'`; do \
      $(INSTALL_DATA) $${f} $(top_builddir)/library/base/data; \
    done

mostlyclean: clean
clean:
distclean:
    @rm -f Makefile
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 R data man; do \
      if test -d $(srcdir)/$${d}; then \
        ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
            | (cd $(distdir); $(TAR) -x -f -)) \
          || exit 1; \
      fi; \
      if test -d $(srcdir)/src; then \
        ((cd $(srcdir); $(TAR) -c -f - $${d}/*[.cfh]) \
            | (cd $(distdir); $(TAR) -x -f -)) \
          || exit 1; \
      fi; \
    done