Rev 89129 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## ${R_HOME}/src/library/tools/MakefileVPATH = @srcdir@srcdir = @srcdir@top_srcdir = @top_srcdir@top_builddir = ../../..subdir = src/library/toolsinclude $(top_builddir)/Makeconfdistdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)DISTFILES = DESCRIPTION.in Makefile.in Makefile.win NAMESPACEpkg = toolsWRE_DATA = $(top_builddir)/library/$(pkg)/misc/wre.txtWRE_SRC = $(top_srcdir)/doc/manual/R-exts.texiRSRC = `LC_COLLATE=C ls $(srcdir)/R/*.R`## avoid bootstrapping issue with internal tzcode.R_EXE = R_ENABLE_JIT=0 TZ=UTC $(top_builddir)/bin/R --vanilla --no-echo## For people who do make -C ../src/library/toolsupdate:@$(MAKE) all@R_SYSTEM_ABI='@R_SYSTEM_ABI@' $(MAKE) mklazycomp## This is deliberately conservative: -nt seems to work differently in some shells## We first use mkdesc2 (with date) to install the DESCRIPTION, then re-installall: Makefile DESCRIPTION@$(ECHO) "building package '$(pkg)'"@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/misc@$(ECHO) $(abs_top_srcdir) \> $(top_builddir)/library/$(pkg)/misc/top.txt@$(MAKE) mkR1 mkdesc2 $(WRE_DATA)@$(MAKE) mksrc@if ! test -f $(top_builddir)/library/$(pkg)/R/$(pkg); then \$(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg); \else if test all.R -nt $(top_builddir)/library/$(pkg)/R/$(pkg); then \$(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg); \fi \fi@$(MAKE) sysdata@$(ECHO) "tools:::.install_package_description('.', '"$(top_builddir)/library/${pkg}"')" | \R_DEFAULT_PACKAGES=NULL $(R_EXE) > /dev/nullmkR: mkR1## avoid "$<" as that was empty when using bmake (tested 20200710 and 20241124)$(WRE_DATA): $(WRE_SRC)@grep -E '^@(api|eapi|emb|for)(fun|var|hdr)' "$(WRE_SRC)" > "$@"include $(top_srcdir)/share/make/basepkg.mk## Note that R_COMPILER_SUPPRESS_ALL is now on by default## Depends on Makefile for @R_SYSTEM_ABI@$(top_builddir)/library/$(pkg)/R/$(pkg).rdb: Makefile all.R $(top_srcdir)/share/licenses/license.db@$(ECHO) "byte-compiling package '$(pkg)'"@$(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg)@(cat $(srcdir)/R/makeLazyLoad.R; \$(ECHO) "makeLazyLoading(\"$(pkg)\")") | \_R_COMPILE_PKGS_=1 R_COMPILER_SUPPRESS_ALL=1 \R_SYSTEM_ABI='@R_SYSTEM_ABI@' \R_DEFAULT_PACKAGES=NULL LC_ALL=C $(R_EXE) > /dev/nullRsimple: mkR mkRsimpleRlazy: mkR mkRsimple@$(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg)@(cat $(srcdir)/R/makeLazyLoad.R; \$(ECHO) "makeLazyLoading(\"$(pkg)\")") | \R_SYSTEM_ABI='@R_SYSTEM_ABI@' \R_DEFAULT_PACKAGES=NULL LC_ALL=C $(R_EXE) > /dev/nullRlazycomp: mkR mkRsimple mklazycomp