The R Project SVN R

Rev

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

#
# ${R_HOME}/tools/Makefile

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

top_builddir = ..
subdir = tools

include $(top_builddir)/Makeconf

SCRIPT_SOURCES = \
    Rdnewer.in \
    help2man.in \
    install-info.in \
    keyword-test.in \
    pkg2tex.in
SCRIPT_OBJECTS = $(SCRIPT_SOURCES:.in=)

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in \
    GETCONFIG GETMAKEVAL GETSYMBOLS GETVERSION \
    Rd.files \
    config.guess \
    config.sub \
    copy-if-change \
    install-sh \
    keywords2html.pl \
    ldAIX4 \
    linkcheck.pl \
    mdate-sh \
    missing \
    mkinstalldirs \
    move-if-change \
    texi2dvi \
    $(SCRIPT_SOURCES)

all: Makefile R

.SUFFIXES:
.SUFFIXES: .in

.in:
    @cd $(top_builddir) && \
      CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
      $(SHELL) ./config.status
    @chmod +x $@

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    @cd $(top_builddir) && \
      CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
      $(SHELL) ./config.status
    @(for f in $(SCRIPT_OBJECTS); do \
        echo "$${f}: $(srcdir)/$${f}.in"; \
      done) >> $@

R: $(SCRIPT_OBJECTS)

$(SCRIPT_OBJECTS): $(top_builddir)/config.status

mostlyclean: clean
clean:
distclean: clean
    @rm -f Makefile $(SCRIPT_OBJECTS)
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

## Automagically generated dependencies: