# # ${R_HOME}/src/include/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../.. subdir = src/include include $(top_builddir)/Makeconf SRC_HEADERS = Applic.h Arith.h Blas.h Complex.h Error.h Errormsg.h \ Fortran.h Linpack.h Mathlib.h Memory.h PrtUtil.h Random.h \ Rdefines.h Rinternals.h S.h S_compat.h Utils.h f2c.h OBJ_HEADERS = Rconfig.h Rversion.h distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = Makefile.in README \ Defn.h Fileio.h Graphics.h IOStuff.h Parse.h Print.h \ Statdecl.h Startup.h Stattab.h \ $(SRC_HEADERS) \ Rconfig.h.in Rversion.h.in all: Makefile R Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && \ CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ $(SHELL) ./config.status R: Makefile Rconfig.h Rversion.h FFDecl.h FFTab.h @$(MKINSTALLDIRS) $(top_builddir)/include @for f in $(SRC_HEADERS); do \ $(INSTALL_DATA) $(srcdir)/$$f $(top_builddir)/include; \ done @for f in $(OBJ_HEADERS); do \ $(INSTALL_DATA) $$f $(top_builddir)/include; \ done Rconfig.h: $(top_srcdir)/configure $(srcdir)/Rconfig.h.in @cd $(top_builddir) && $(MAKE) src/include/Rconfig.h @touch $@ Rversion.h: $(srcdir)/Rversion.h.in $(top_srcdir)/date-stamp @cp $(srcdir)/Rversion.h.in $@ @$(AWK) -F/ '{ \ printf "#define R_DAY\t\"%s\"\n", $$3; \ printf "#define R_MONTH\t\"%s\"\n", $$2; \ printf "#define R_YEAR\t\"%s\"\n", $$1 }' \ $(top_srcdir)/date-stamp >> $@ FFDecl.h FFTab.h:: $(top_srcdir)/src/appl/ROUTINES $(top_srcdir)/tools/GETSYMBOLS mostlyclean: clean: distclean: @rm -f GETSYMBOLS Makefile Rconfig.h Rversion.h FFDecl.h FFTab.h maintainer-clean: distclean install install-strip uninstall:: 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