Skip to content
Snippets Groups Projects
Commit 88d8d67e authored by Mick Jordan's avatar Mick Jordan
Browse files

native: avoid include of platform.mk on clean

parent 2198ea2a
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,9 @@
# that refers to GnuR-internal symbols.
#
ifneq ($(MAKECMDGOALS),clean)
include $(TOPDIR)/platform.mk
endif
.PHONY: all clean cleanlib cleanobj force libr
......
......@@ -25,7 +25,9 @@ ifeq ($(TOPDIR),)
TOPDIR = $(abspath ../..)
endif
ifneq ($(MAKECMDGOALS),clean)
include $(TOPDIR)/platform.mk
endif
.PHONY: all clean
......
......@@ -77,6 +77,11 @@ build: $(GNUR_DIR)/bin/R
$(GNUR_DIR)/bin/R: $(GNUR_DIR)/Makeconf
(cd $(GNUR_DIR); make >& gnur_make.log)
HAVE_MAKEFILE := $(shell [ -f $(GNUR_DIR)/Makefile ] && echo "Makefile.exists")
ifeq ($(HAVE_MAKEFILE),Makefile.exists)
clean:
rm -f Makeconf.done
(cd $(GNUR_DIR); make distclean)
else
clean:
endif
......@@ -23,7 +23,9 @@
# Copies the Blas and lapack libraries and builds the pcre library
ifneq ($(MAKECMDGOALS),clean)
include $(TOPDIR)/platform.mk
endif
TARGET_DIR := $(TOPDIR)/builtinlibs/lib
BLAS_TARGET := $(TARGET_DIR)/libRblas$(DYLIB_EXT)
......
......@@ -30,7 +30,9 @@
# A package that requires special processing before the library is built should
# define LIB_PKG_PRE and for post processing define LIB_PKG_POST
ifneq ($(MAKECMDGOALS),clean)
include $(TOPDIR)/platform.mk
endif
.PHONY: all clean cleanlib cleanobj force libr libcommon
......
......@@ -29,7 +29,9 @@ C_OBJECTS := $(C_SOURCES:.c=.o)
C_LIB := testrffi.so
NATIVE_PROJECT=$(FASTR_HOME)/com.oracle.truffle.r.native
ifneq ($(MAKECMDGOALS),clean)
include $(NATIVE_PROJECT)/platform.mk
endif
ifeq ($(FASTR_INSTALL), GNUR)
INCLUDES := -I $(R_HOME)/include
......
......@@ -27,7 +27,9 @@ endif
NATIVE_PROJECT = $(subst test.native,native,$(TOPDIR))
ifneq ($(MAKECMDGOALS),clean)
include $(NATIVE_PROJECT)/platform.mk
endif
.PHONY: all clean
......
......@@ -29,7 +29,9 @@ C_OBJECTS := $(C_SOURCES:.c=.o)
C_LIB := testrffi.so
NATIVE_PROJECT=$(FASTR_HOME)/com.oracle.truffle.r.native
ifneq ($(MAKECMDGOALS),clean)
include $(NATIVE_PROJECT)/platform.mk
endif
ifeq ($(FASTR_INSTALL), GNUR)
INCLUDES := -I $(R_HOME)/include
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment