# # ${RHOME}/src/scripts/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../.. subdir = src/scripts include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = $(shell cd $(srcdir) && ls | sed '/CVS/d') SRC_SCRIPTS = BATCH Rd2txt Rd2dvi filename help help.links pager \ massage-Examples check OBJ_SCRIPTS = COMPILE INSTALL REMOVE Rdconv Rdindex Rman2Rd SHLIB \ Sd2Rd build-help fwf2table help.pretty html2dos all: R R: @$(MKINSTALLDIRS) $(top_builddir)/bin @cat R.sh | \ (cd $(top_builddir); sed "s@RHOME=.*@RHOME=`pwd`@" > bin/R) @chmod +x $(top_builddir)/bin/R @for f in $(SRC_SCRIPTS); do \ $(INSTALL) $(srcdir)/$$f $(top_builddir)/bin; \ done @for f in $(OBJ_SCRIPTS); do \ $(INSTALL) $$f $(top_builddir)/bin; \ done mostlyclean: clean clean: distclean: @rm -f Makefile R.sh $(OBJ_SCRIPTS) 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