-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (18 loc) · 788 Bytes
/
makefile
File metadata and controls
23 lines (18 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#* Makefile to build premake-core for tests on windows
PREMAKE_OUT = vendor\premake-core\bin\release\premake5.exe
#* Runs the tests.
all: build
@echo Testing debug config
@cd test\out\bin\debug && .\ExampleProjectExe.exe && .\ExampleProjectExeNonCUDA.exe
@echo Testing release config
@cd test\out\bin\release && .\ExampleProjectExe.exe && .\ExampleProjectExeNonCUDA.exe
build: premake
@cd test\out && msbuild -p:Configuration=debug -m -v:Normal
@cd test\out && msbuild -p:Configuration=release -m -v:Normal
premake: $(PREMAKE_OUT)
@$(PREMAKE_OUT) --file=test\premake5.lua vs2022
$(PREMAKE_OUT):
@cd vendor\premake-core && $(MAKE) -nologo -f Bootstrap.mak windows PLATFORM=x64
clean:
@if exist $(PREMAKE_OUT) del /s /q $(PREMAKE_OUT)
@if exist test\out rmdir /s /q test\out