Skip to content

Commit

Permalink
Web and MacOSX build fix (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Yablonskiy <s.yablonskiy@pixonic.com>
Co-authored-by: Ray <raysan5@gmail.com>
  • Loading branch information
3 people authored Oct 26, 2023
1 parent 9d507ba commit 923712c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
ifeq ($(UNAMEOS),Linux)
PLATFORM_OS = LINUX
endif
ifeq ($(UNAMEOS),Darwin)
PLATFORM_OS = OSX
endif
ifndef PLATFORM_SHELL
PLATFORM_SHELL = sh
endif
Expand Down Expand Up @@ -475,6 +478,14 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
find . -type f -executable -delete
rm -fv *.o
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
ifeq ($(PLATFORM_OS),LINUX)
rm -fv *.o $(PROJECT_NAME).data $(PROJECT_NAME).html $(PROJECT_NAME).js $(PROJECT_NAME).wasm
endif
ifeq ($(PLATFORM_OS),OSX)
rm -f *.o $(PROJECT_NAME).data $(PROJECT_NAME).html $(PROJECT_NAME).js $(PROJECT_NAME).wasm
endif
endif

# Set specific target variable
clean_shell_cmd: SHELL=cmd
Expand Down

0 comments on commit 923712c

Please sign in to comment.