Rev 40697 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## ${R_HOME}/src/library/methods/MakefileVPATH = @srcdir@srcdir = @srcdir@top_srcdir = @top_srcdir@top_builddir = ../../..subdir = src/library/methodsinclude $(top_builddir)/Makeconfdistdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)DISTFILES = LICENSE DESCRIPTION.in Makefile.in NAMESPACEpkg = methodsR_EXE = $(top_builddir)/bin/R --vanillaall: Makefile DESCRIPTION@echo "building package '$(pkg)'"@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/R@(f=$${TMPDIR:-/tmp}/R$$$$; \echo ".packageName <- \"$(pkg)\"" > $${f}; \cat `LC_COLLATE=C ls $(srcdir)/R/*.R` >> $${f}; \$(SHELL) $(top_srcdir)/tools/move-if-change $${f} all.R)@rm -f $(top_builddir)/library/$(pkg)/Meta/nsInfo.rds@for f in COPYRIGHTS INDEX SOURCES NAMESPACE; do \if test -f $(srcdir)/$${f}; then \$(INSTALL_DATA) $(srcdir)/$${f} \$(top_builddir)/library/$(pkg); \fi; \done@if test -f DESCRIPTION; then \echo "tools:::.install_package_description('.', '"$(top_builddir)/library/${pkg}"')" | \R_DEFAULT_PACKAGES=NULL $(R_EXE) --slave > /dev/null ; \fi@if test -d $(srcdir)/inst/po; then \if test "@USE_NLS@" = "yes"; then \$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/po; \cp -pr $(srcdir)/inst/po/* $(top_builddir)/library/$(pkg)/po; \find "$(top_builddir)/library/$(pkg)/po" -name .svn -type d -prune \-exec rm -rf \{\} \; 2>/dev/null; \fi; \fi@if test -d $(srcdir)/man; then \$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/man; \(f=$${TMPDIR:-/tmp}/R$$$$; \for rdfile in $(srcdir)/man/*.Rd; do \echo "% --- Source file: $${rdfile} ---"; \cat $${rdfile}; echo '\eof'; \done >> $${f}; \$(SHELL) $(top_srcdir)/tools/move-if-change $${f} \$(top_builddir)/library/$(pkg)/man/$(pkg).Rd); \rm -f $(top_builddir)/library/$(pkg)/man/$(pkg).Rd.gz; \$(R_GZIPCMD) $(top_builddir)/library/$(pkg)/man/$(pkg).Rd; \fi@if test -d src; then \(cd src && $(MAKE)) || exit 1; \fi@$(MAKE) RfilesLazyMakefile: $(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)/$@RfilesLazy: $(top_builddir)/library/$(pkg)/R/$(pkg).rdb## loadNamespace() depends on the NAMESPACE file. We remove the## dumped copy (it is rebuilt later), and we have already installed## NAMESPACE in the library tree.$(top_builddir)/library/$(pkg)/R/$(pkg).rdb: all.R $(srcdir)/NAMESPACE@rm -f $(top_builddir)/library/$(pkg)/Meta/nsInfo.rds $@@echo "dumping R code in package '$(pkg)'"@$(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg)@echo "invisible(loadNamespace(\"$(pkg)\"))" | \R_DEFAULT_PACKAGES=NULL LC_ALL=C $(R_EXE) --slave@$(INSTALL_DATA) $(top_srcdir)/share/R/nspackloader.R \$(top_builddir)/library/$(pkg)/R/$(pkg)mostlyclean: cleanclean:@if test -d src; then (cd src && $(MAKE) $@); fi-@rm -f all.R .RDatadistclean:@if test -d src; then (cd src && $(MAKE) $@); fi-@rm -f Makefile DESCRIPTIONmaintainer-clean: distcleandistdir: $(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 po; 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