# # ${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 Complex.h Error.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 \ # R.h RS.h Constants.h # Blas.h SRC_HEADERS = R.h S.h Rdefines.h Rinternals.h S_compat.h R_EXT_HEADERS = Applic.h Arith.h Complex.h Constants.h Error.h \ Linpack.h Mathlib.h Memory.h PrtUtil.h Random.h RS.h Utils.h f2c.h OBJ_HEADERS = Rconfig.h Rversion.h # config.h distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) ## FIXME: get this right when restructuring is done! DISTFILES = Makefile.in README \ Defn.h Errormsg.h Fileio.h Fortran.h Graphics.h IOStuff.h \ Parse.h Print.h Startup.h \ $(SRC_HEADERS) \ config.h.in SUBDIRS = R_ext all: Makefile R Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && \ CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ $(SHELL) ./config.status R: Makefile config.h Rconfig.h Rversion.h FFDecl.h FFTab.h @$(MKINSTALLDIRS) $(top_builddir)/include @$(MKINSTALLDIRS) $(top_builddir)/include/R_ext @for f in $(SRC_HEADERS); do \ $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir)/include; \ done @for f in $(R_EXT_HEADERS); do \ $(INSTALL_DATA) $(srcdir)/R_ext/$${f} \ $(top_builddir)/include/R_ext; \ done @for f in $(OBJ_HEADERS); do \ $(INSTALL_DATA) $${f} $(top_builddir)/include; \ done config.h: $(top_srcdir)/configure $(srcdir)/config.h.in @cd $(top_builddir) && $(MAKE) src/include/config.h @touch $@ Rconfig.h: $(top_srcdir)/VERSION config.h @$(top_srcdir)/tools/GETCONFIG > $@ Rversion.h: $(top_srcdir)/VERSION $(top_srcdir)/date-stamp @$(top_srcdir)/tools/GETVERSION > $@ FFDecl.h FFTab.h:: $(top_srcdir)/src/appl/ROUTINES $(top_srcdir)/tools/GETSYMBOLS @$(top_srcdir)/tools/GETSYMBOLS mostlyclean: clean: distclean: @rm -f Makefile config.h Rconfig.h Rversion.h FFDecl.h FFTab.h @rm -f GETSYMBOLS 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 @for d in $(SUBDIRS); do \ if test -d $(srcdir)/$${d}; then \ ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \ | (cd $(distdir); $(TAR) -x -f -)) \ || exit 1; \ fi; \ done