Browse Source

tweak makefile

main
Gabriel Pariat 2 years ago
parent
commit
952be11131
  1. 8
      Makefile
  2. 0
      Makefile.Android

8
Makefile

@ -116,7 +116,7 @@ endif
ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),LINUX) ifeq ($(PLATFORM_OS),LINUX)
RAYLIB_PREFIX ?= .. RAYLIB_PREFIX ?= ..
RAYLIB_PATH = $(realpath $(RAYLIB_PREFIX)) RAYLIB_PATH ?= $(realpath $(RAYLIB_PREFIX))
endif endif
endif endif
@ -406,6 +406,7 @@ endif
# Default target entry # Default target entry
# NOTE: We call this Makefile target or Makefile.Android target # NOTE: We call this Makefile target or Makefile.Android target
all: all:
$(MAKE) -C $(RAYLIB_PATH)/src $(RAYLIB PLATFORM=$(PLATFORM) -B
$(MAKE) $(MAKEFILE_PARAMS) $(MAKE) $(MAKEFILE_PARAMS)
# Project target defined by PROJECT_NAME # Project target defined by PROJECT_NAME
@ -444,8 +445,9 @@ endif
run: $(BUILD_DIR)/$(PROJECT_NAME)$(EXT) run: $(BUILD_DIR)/$(PROJECT_NAME)$(EXT)
ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM),PLATFORM_DESKTOP)
./$(PROJECT_NAME) ./$(BUILD_DIR)/$(PROJECT_NAME)
endif endif
ifeq ($(PLATFORM),PLATFORM_WEB) 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 endif

0
src/Makefile.Android → Makefile.Android

Loading…
Cancel
Save