|
|
|
@ -116,7 +116,7 @@ endif
@@ -116,7 +116,7 @@ endif
|
|
|
|
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP) |
|
|
|
|
ifeq ($(PLATFORM_OS),LINUX)
|
|
|
|
|
RAYLIB_PREFIX ?= ..
|
|
|
|
|
RAYLIB_PATH = $(realpath $(RAYLIB_PREFIX))
|
|
|
|
|
RAYLIB_PATH ?= $(realpath $(RAYLIB_PREFIX))
|
|
|
|
|
endif
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
@ -406,6 +406,7 @@ endif
@@ -406,6 +406,7 @@ endif
|
|
|
|
|
# Default target entry
|
|
|
|
|
# NOTE: We call this Makefile target or Makefile.Android target
|
|
|
|
|
all: |
|
|
|
|
$(MAKE) -C $(RAYLIB_PATH)/src $(RAYLIB PLATFORM=$(PLATFORM) -B
|
|
|
|
|
$(MAKE) $(MAKEFILE_PARAMS)
|
|
|
|
|
|
|
|
|
|
# Project target defined by PROJECT_NAME
|
|
|
|
@ -444,8 +445,9 @@ endif
@@ -444,8 +445,9 @@ endif
|
|
|
|
|
|
|
|
|
|
run: $(BUILD_DIR)/$(PROJECT_NAME)$(EXT) |
|
|
|
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP) |
|
|
|
|
./$(PROJECT_NAME)
|
|
|
|
|
./$(BUILD_DIR)/$(PROJECT_NAME)
|
|
|
|
|
endif |
|
|
|
|
ifeq ($(PLATFORM),PLATFORM_WEB) |
|
|
|
|
npx live-server --open=$(BUILD_DIR)/$(PROJECT_NAME)$(EXT) --ignore=*.c,*.h,Makefile
|
|
|
|
|
npx live-server --open=$(BUILD_DIR)/$(PROJECT_NAME)$(EXT) \
|
|
|
|
|
--watch=$(BUILD_DIR)/*.wasm,$(BUILD_DIR)/*.html,$(BUILD_DIR)/*.js,$(BUILD_DIR)/*.data
|
|
|
|
|
endif |
|
|
|
|