The R Project SVN R

Rev

Rev 5235 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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

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

top_builddir = ../../..
subdir = src/library/profile

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Common.R Makefile.in Rprofile.mac Rprofile.unix Rprofile.win

## Configure (not yet): Replace `unix' by `win' or `mac'
## Should be EASY

all: Makefile $(srcdir)/Common.R $(srcdir)/Rprofile.unix
    @echo "building system startup profile"
    @cat $(srcdir)/Common.R $(srcdir)/Rprofile.unix \
      > $(top_builddir)/library/base/R/Rprofile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    @cd $(top_builddir) && \
      CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
      $(SHELL) ./config.status

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