Skip to content

Commit 1b9d6e3

Browse files
author
ligges
committed
port generation of wre.txt from Makefile.win
git-svn-id: https://svn.r-project.org/R/trunk@89145 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 0045988 commit 1b9d6e3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/library/tools/Makefile.win

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ include $(top_builddir)/Makeconf
1111

1212
pkg = tools
1313

14+
WRE_DATA = $(top_builddir)/library/$(pkg)/misc/wre.txt
15+
WRE_SRC = $(top_srcdir)/doc/manual/R-exts.texi
16+
1417
RSRC = `LC_COLLATE=C ls $(srcdir)/R/*.R`
1518

1619
ifdef USE_LLVM
@@ -23,14 +26,19 @@ endif
2326
all:
2427
@$(ECHO) "building package '$(pkg)'"
2528
@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)
26-
@$(MAKE) -f Makefile.win mkR1 mkdesc2 mksrc-win2
29+
@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/misc
30+
@$(MAKE) -f Makefile.win mkR1 mkdesc2 mksrc-win2 $(WRE_DATA)
2731
@if ! test $(top_builddir)/library/$(pkg)/R/$(pkg) -nt all.R; then \
2832
$(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg); \
2933
fi
3034
@$(MAKE) -f Makefile.win sysdata
3135
@$(ECHO) "tools:::.install_package_description('.', '"$(top_builddir)/library/${pkg}"')" | \
3236
R_DEFAULT_PACKAGES=NULL $(R_EXE) > /dev/null
3337

38+
## avoid "$<" as that was empty when using bmake (tested 20200710 and 20241124)
39+
$(WRE_DATA): $(WRE_SRC)
40+
@grep -E '^@(api|eapi|emb|for)(fun|var|hdr)' "$(WRE_SRC)" > "$@"
41+
3442
include $(top_srcdir)/share/make/basepkg.mk
3543

3644
## Note that R_COMPILER_SUPPRESS_ALL is now on by default

0 commit comments

Comments
 (0)