Makefile 546 B

1234567891011121314151617181920212223242526
  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 = -e 's:\$$(RDIR):$(R_INSTALL)/lib/R/:g'
  7. level = ../../
  8. include ../../Makefile
  9. $(R_INSTALL)/lib/R/bin/exec/R: $(R_SRC)/Makefile
  10. cd $(R_SRC) && $(MAKE)
  11. cd $(R_SRC) && $(MAKE) install
  12. $(R_SRC)/Makefile: $(R_SRC)/configure
  13. cd $(R_SRC) && \
  14. ./configure --prefix=$(shell readlink -f $(R_INSTALL))
  15. $(R_SRC)/configure: $(R_SRC).tar.gz
  16. tar -xzf $<
  17. distclean: clean
  18. rm -rf $(R_SRC)