12345678910111213141516171819202122232425262728293031323334353637383940 |
- manifests = R.manifest R-local.manifest
- all debug: $(manifests)
- R_SRC = R-3.1.2
- R_INSTALL = $(R_SRC)/build
- local: R-local
- R-local: $(R_INSTALL)/lib/R/bin/exec/R
- cp -f $< $@
- $(R_INSTALL)/lib/R/bin/exec/R: $(R_SRC)/Makefile
- cd $(R_SRC) && $(MAKE)
- cd $(R_SRC) && $(MAKE) install
- $(R_SRC)/Makefile: $(R_SRC)/configure
- cd $(R_SRC) && \
- ./configure --prefix=$(shell readlink -f $(R_INSTALL))
- $(R_SRC)/configure: $(R_SRC).tar.gz
- tar -xzf $<
- test_targets =
- test: all $(test_targets)
- R.manifest: R.manifest.template
- $(MAKE) -C .. r/$@ appdir=r/
- R-local.manifest: R-local.manifest.template
- $(MAKE) -C .. r/$@ appdir=r/ \
- extra_rules="-e 's:\\\$$\$$(RDIR):$(shell readlink -f $(R_INSTALL)/lib/R):g'"
- distclean: clean
- rm -rf $(R_SRC) R-local
- clean: clean-manifests
- clean-manifests:
- rm -rf $(manifests)
|