#
# ${R_HOME}/src/library/stats/Makefile

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

top_builddir = ../../..
subdir = src/library/stats

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = COPYRIGHTS.modreg COPYRIGHTS.portsrc DESCRIPTION.in Makefile.in \
  Makefile.win NAMESPACE SOURCES.ts loess-README splines-README

pkg = stats

FRONTFILES = COPYRIGHTS.modreg SOURCES.ts

R_EXE = $(top_builddir)/bin/R --vanilla --slave

## mkR2 is historical -- needed rather than mkR?
all: Makefile DESCRIPTION
	@$(ECHO) "building package '$(pkg)'"
	@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)
	@$(MAKE) mkR2 front mkdesc mkdemos mkpo
	@$(MAKE) mksrc
	@$(MAKE) mklazy


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