diff --git a/com.oracle.truffle.r.native/run/Makefile b/com.oracle.truffle.r.native/run/Makefile
index f7ab3752dc923e0c548908462a75f0012b6d2b67..2fef3f402438778dbd2e1de9aa43bac7424bdb96 100644
--- a/com.oracle.truffle.r.native/run/Makefile
+++ b/com.oracle.truffle.r.native/run/Makefile
@@ -84,7 +84,9 @@ $(FASTR_BIN_DIR)/R: Makefile R.sh Rscript.sh Rscript_exec.sh
 	# overrides
 	cp examples-header.R examples-footer.R $(FASTR_SHARE_DIR)/R
 
-includedir: Makefile $(TOPDIR)/include/Rinternals.h
+includedir: $(FASTR_R_HOME)/include/Rinternals.h
+
+$(FASTR_R_HOME)/include/Rinternals.h: Makefile $(TOPDIR)/include/Rinternals.h
 	mkdir -p $(FASTR_R_HOME)/include
 	cp -r $(TOPDIR)/include/* $(FASTR_R_HOME)/include