The R Project SVN R

Rev

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

#
# ${R_HOME}/src/Makefile

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

top_builddir = ..
subdir = src

include $(top_builddir)/Makeconf

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

SUBDIRS = scripts include appl nmath unix @RGNOMEDIR@ main library

all install install-strip TAGS info dvi dist check R docs::
    @for d in $(SUBDIRS); do \
      (cd $${d} && $(MAKE) $@) || exit 1; \
    done

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

uninstall mostlyclean clean::
    @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
      for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
distclean:
    @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
      for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
    @rm -f gnome/Makefile
    @rm -f Makefile
maintainer-clean: distclean

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 `echo "$(SUBDIRS)" \
                 | tr " " "\n" \
                 | sed '/gnome/d'`; do \
      test -d $(distdir)/$${d} \
        || mkdir $(distdir)/$${d} \
        || exit 1; \
      chmod 755 $(distdir)/$${d}; \
      (cd $${d} && $(MAKE) distdir) \
        || exit 1; \
    done
    @((cd $(srcdir); \
          $(TAR) -c -f - --exclude=CVS f2clib gnome gnuwin32) \
        | (cd $(distdir); $(TAR) -x -f -)) \
      || exit 1