Makefile 584 B

12345678910111213141516171819202122232425262728
  1. R_SRC = R-3.1.2
  2. R_INSTALL = $(R_SRC)/build
  3. manifests = R.manifest $(if $(wildcard R-local),R-local.manifest,)
  4. target =
  5. exec_target = $(manifests)
  6. extra_rules = \
  7. -e 's:\$$(PAL):../pal_loader:g' \
  8. -e 's:\$$(RDIR):$(R_INSTALL)/lib/R/:g'
  9. level = ../../
  10. include ../../Makefile
  11. $(R_INSTALL)/lib/R/bin/exec/R: $(R_SRC)/Makefile
  12. cd $(R_SRC) && $(MAKE)
  13. cd $(R_SRC) && $(MAKE) install
  14. $(R_SRC)/Makefile: $(R_SRC)/configure
  15. cd $(R_SRC) && \
  16. ./configure --prefix=$(shell readlink -f $(R_INSTALL))
  17. $(R_SRC)/configure: $(R_SRC).tar.gz
  18. tar -xzf $<
  19. distclean: clean
  20. rm -rf $(R_SRC)