Makefile.win 1.04 KB
Newer Older
Radford Neal's avatar
Radford Neal committed
1 2 3 4 5 6 7 8 9 10
#-*- Makefile -*-
#
# ${R_HOME}/src/library/base/Makefile

srcdir = .
top_srcdir = ../../..

top_builddir = ../../..
subdir = src/library/base

Radford Neal's avatar
Radford Neal committed
11 12
include $(top_builddir)/Makeconf

Radford Neal's avatar
Radford Neal committed
13 14
pkg = base

Radford Neal's avatar
Radford Neal committed
15
R_OSTYPE = windows
Radford Neal's avatar
Radford Neal committed
16 17 18 19 20
RSRC = `LC_COLLATE=C ls $(srcdir)/R/*.R $(srcdir)/R/$(R_OSTYPE)/*.R`

all:
	@$(ECHO) "building package '$(pkg)'"
	@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)
Radford Neal's avatar
Radford Neal committed
21
	@$(MAKE) -f Makefile.win mkR1 mkdesc2 mkdemos2 mkpo
Radford Neal's avatar
Radford Neal committed
22
	@$(INSTALL_DATA) $(srcdir)/inst/CITATION $(top_builddir)/library/$(pkg)
Radford Neal's avatar
Radford Neal committed
23 24 25 26 27 28 29
	@if ! test $(top_builddir)/library/$(pkg)/R/$(pkg) -nt all.R; then \
	  $(INSTALL_DATA) all.R $(top_builddir)/library/$(pkg)/R/$(pkg); \
	fi

include $(top_srcdir)/share/make/basepkg.mk

$(top_builddir)/library/$(pkg)/R/$(pkg).rdb: all.R
30
	@$(ECHO) "NOT byte-compiling package '$(pkg)'"
Radford Neal's avatar
Radford Neal committed
31

Radford Neal's avatar
Radford Neal committed
32 33 34 35 36 37
mkR: mkR1

Rsimple: mkR mkRsimple

Rlazy: mkR mkRsimple
	@cat $(srcdir)/makebasedb.R | \
38
	  R_DEFAULT_PACKAGES=NULL LC_ALL=C $(R_EXE) > $(R_BIT_BUCKET)
Radford Neal's avatar
Radford Neal committed
39 40 41 42
	@$(INSTALL_DATA) $(srcdir)/baseloader.R \
	  $(top_builddir)/library/$(pkg)/R/$(pkg)

Rlazycomp: mkR mkRsimple mklazycomp