# # ${R_HOME}/src/library/eda/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../../.. subdir = src/library/eda include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = DESCRIPTION.in Makefile.in NAMESPACE pkg = eda all: Makefile DESCRIPTION @echo "building package '$(pkg)'" @$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/R @(f=$${TMPDIR:-/tmp}/R$$$$; \ cat `ls $(srcdir)/R/*.R` > $${f}; \ $(top_srcdir)/tools/move-if-change $${f} \ $(top_builddir)/library/$(pkg)/R/$(pkg)) @for f in COPYRIGHTS INDEX NAMESPACE SOURCES; do \ if test -f $(srcdir)/$${f}; then \ $(INSTALL_DATA) $(srcdir)/$${f} \ $(top_builddir)/library/$(pkg); \ fi; \ done @if test -f DESCRIPTION; then \ $(INSTALL_DATA) DESCRIPTION $(top_builddir)/library/$(pkg); \ (if test -d $(srcdir)/src; then \ echo "Built: R" $(VERSION)\; $(R_PLATFORM)\; `date`; \ else \ echo "Built: R" $(VERSION)\; \; `date`; \ fi) >> $(top_builddir)/library/$(pkg)/DESCRIPTION; \ 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 $(srcdir)/demo; then \ $(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/demo; \ for f in `ls -d $(srcdir)/demo/* | sed '/CVS/d'`; do \ $(INSTALL_DATA) $${f} $(top_builddir)/library/$(pkg)/demo; \ done; \ fi @if test -d $(srcdir)/man; then \ $(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/man; \ (f=$${TMPDIR:-/tmp}/R$$$$; \ for rdfile in $(srcdir)/man/*.Rd; do \ cat $${rdfile}; echo '\eof'; \ done >> $${f}; \ $(top_srcdir)/tools/move-if-change $${f} \ $(top_builddir)/library/$(pkg)/man/$(pkg).Rd); \ fi @if test -d src; then \ (cd src && $(MAKE)) || exit 1; \ fi Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ DESCRIPTION: $(srcdir)/DESCRIPTION.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 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 DESCRIPTION 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 demo exec inst man src; do \ if test -d $(srcdir)/$${d}; then \ ((cd $(srcdir); \ $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \ | (cd $(distdir); $(TAR) -x -f -)) \ || exit 1; \ fi; \ done