Browse Source

tweak to run in makefile

main
Gabriel Pariat 2 years ago
parent
commit
1d95de98f6
  1. 6
      Makefile

6
Makefile

@ -52,7 +52,7 @@ USE_WAYLAND_DISPLAY ?= FALSE @@ -52,7 +52,7 @@ USE_WAYLAND_DISPLAY ?= FALSE
# PLATFORM_WEB: Default properties
BUILD_WEB_ASYNCIFY ?= FALSE
BUILD_WEB_SHELL ?= minshell.html
BUILD_WEB_SHELL ?= src/minshell.html
BUILD_WEB_HEAP_SIZE ?= 134217728
BUILD_WEB_RESOURCES ?= TRUE
BUILD_WEB_RESOURCES_PATH ?= resources
@ -442,10 +442,10 @@ ifeq ($(PLATFORM),PLATFORM_DRM) @@ -442,10 +442,10 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
endif
@echo Cleaning done
run: $(PROJECT_NAME)$(EXT)
run: $(BUILD_DIR)/$(PROJECT_NAME)$(EXT)
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
./$(PROJECT_NAME)
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
npx live-server --open=$(PROJECT_NAME)$(EXT) --ignore=*.c,*.h,Makefile
npx live-server --open=$(BUILD_DIR)/$(PROJECT_NAME)$(EXT) --ignore=*.c,*.h,Makefile
endif

Loading…
Cancel
Save