#
# ${R_HOME}/src/library/grDevices/Makefile
pkg = grDevices

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@

top_builddir = ../../..
subdir = src/library/$(pkg)

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = DESCRIPTION.in Makefile.in Makefile.win NAMESPACE

R_EXE = $(top_builddir)/bin/R --vanilla --no-echo

RSRC = `LC_COLLATE=C ls $(srcdir)/R/*.R $(srcdir)/R/$(R_OSTYPE)/*.R`
INSTDIRS = afm enc icc
DEFPKGS = NULL

all: Makefile DESCRIPTION
	@$(ECHO) "building package '$(pkg)'"
	@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)
	@$(MAKE) mkR1 mkdesc mkdemos instdirs
	@$(MAKE) mksrc
@BYTE_COMPILE_PACKAGES_FALSE@	@$(MAKE) mklazy
@BYTE_COMPILE_PACKAGES_TRUE@	@$(MAKE) mklazycomp
	@$(R_GZIPCMD) -9f $(top_builddir)/library/grDevices/afm/*.afm

mkR: mkR1

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