# # ${RHOME}/src/library/${pkg}/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../../.. subdir = src/library/stepfun include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = INDEX TITLE Makefile.in pkg = stepfun all: @$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/R @cat `ls $(srcdir)/R/*.R` \ > $(top_builddir)/library/$(pkg)/R/$(pkg) @if test -f $(srcdir)/INDEX; then \ $(INSTALL_DATA) $(srcdir)/INDEX \ $(top_builddir)/library/$(pkg); \ fi @if test -f $(srcdir)/TITLE; then \ $(INSTALL_DATA) $(srcdir)/TITLE\ $(top_builddir)/library/$(pkg); \ fi @if test -d $(srcdir)/data; then \ $(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/data; \ for f in `ls -d $(srcdir)/data/* | sed '/CVS/d'`; do \ $(INSTALL_DATA) $${f} $(top_builddir)/library/$(pkg)/data; \ done; \ fi @if test -d src; then \ (cd src && $(MAKE)) || exit 1; \ fi mostlyclean: clean clean: @if test -d src; then (cd src && $(MAKE) $@); fi distclean: @if test -d src; then (cd src && $(MAKE) $@); fi @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