# # ${RHOME}/src/library/base/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../../.. subdir = src/library/base include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = INDEX TITLE Makefile.in all: @echo Building R base package @$(MKINSTALLDIRS) $(top_builddir)/library/base/R @$(MKINSTALLDIRS) $(top_builddir)/library/base/data @cat `ls $(srcdir)/R/*.R | sed '/system.*/d'` \ $(srcdir)/R/system.unix.R | \ sed '/^[ ]*$$/d' > $(top_builddir)/library/base/R/base # ^^ = TAB + Space ##-- do NOT delete all '#' lines -- this BREAKS strings containing '#' !! ##-- Could still delete all '/^[\t ]*#/ lines, but why not leave comments ? ## @cat $(FUNS) STARTUP |sed '/^$$/d;/^[ ]*#/d' > ../../../library/base ## ^^ = TAB + Space @cp $(srcdir)/INDEX $(srcdir)/TITLE $(top_builddir)/library/base @cp `ls $(srcdir)/data/[a-z]*` $(top_builddir)/library/base/data 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 @for d in R data man; do \ if test -d $(srcdir)/$${d}; then \ ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \ | (cd $(distdir); $(TAR) -x -f -)) \ || exit 1; \ fi; \ if test -d $(srcdir)/src; then \ ((cd $(srcdir); $(TAR) -c -f - $${d}/*[.cfh]) \ | (cd $(distdir); $(TAR) -x -f -)) \ || exit 1; \ fi; \ done