-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (52 loc) · 2.59 KB
/
Makefile
File metadata and controls
65 lines (52 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
AWOOPLATFORM=awoo32
AWOODIR=$(USERPROFILE)\Documents\awoo
GOOS=windows
GOARCH=amd64
GOTAGS=$(AWOOPLATFORM),awoodebug
.PHONY: buildcc builddump buildld buildmu build install runcc rundump runld runmu run clean
buildcc:
@set GOOS=$(GOOS)
@set GOARCH=$(GOARCH)
@go build -o build/$(AWOOPLATFORM)/awoocc.exe -tags $(GOTAGS) cmd/awoocc/main.go
builddump:
@set GOOS=$(GOOS)
@set GOARCH=$(GOARCH)
@go build -o build/$(AWOOPLATFORM)/awoodump.exe -tags $(GOTAGS) cmd/awoodump/main.go
buildld:
@set GOOS=$(GOOS)
@set GOARCH=$(GOARCH)
@go build -o build/$(AWOOPLATFORM)/awoold.exe -tags $(GOTAGS) cmd/awoold/main.go
buildmu:
@set GOOS=$(GOOS)
@set GOARCH=$(GOARCH)
@go build -o build/$(AWOOPLATFORM)/awoomu.exe -tags $(GOTAGS) cmd/awoomu/main.go
build: buildcc builddump buildld buildmu
install: build
@if exist "$(AWOODIR)\bin\$(AWOOPLATFORM)" rmdir /S /Q "$(AWOODIR)\bin\$(AWOOPLATFORM)"
@xcopy "build\$(AWOOPLATFORM)" "$(AWOODIR)\bin\$(AWOOPLATFORM)\" /E /C /I >nul
@if exist"$(AWOODIR)\resources" rmdir /S /Q "$(AWOODIR)\resources"
@xcopy "resources" "$(AWOODIR)\resources\" /E /C /I >nul
runcc: buildcc
@if not exist "$(AWOODIR)\bin\dev" mkdir "$(AWOODIR)\bin\dev"
@copy "build\$(AWOOPLATFORM)\awoocc.exe" "$(AWOODIR)\bin\dev\awoocc.exe" >nul
@cd "build\$(AWOOPLATFORM)" && .\awoocc.exe -i "$(AWOODIR)\data\src" -o "$(AWOODIR)\data\obj"
rundump: builddump
@if not exist "$(AWOODIR)\bin\dev" mkdir "$(AWOODIR)\bin\dev"
@copy "build\$(AWOOPLATFORM)\awoodump.exe" "$(AWOODIR)\bin\dev\awoodump.exe" >nul
@cd "build\$(AWOOPLATFORM)" && .\awoodump.exe -i "$(AWOODIR)\data\obj"
runld: buildld
@if not exist "$(AWOODIR)\bin\dev" mkdir "$(AWOODIR)\bin\dev"
@copy "build\$(AWOOPLATFORM)\awoold.exe" "$(AWOODIR)\bin\dev\awoold.exe" >nul
@cd "build\$(AWOOPLATFORM)" && .\awoold.exe -i "$(AWOODIR)\data\obj" -o "$(AWOODIR)\data\bin\input.awooxe"
runmu: buildmu
@if not exist "$(AWOODIR)\bin\dev" mkdir "$(AWOODIR)\bin\dev"
@copy "build\$(AWOOPLATFORM)\awoomu.exe" "$(AWOODIR)\bin\dev\awoomu.exe" >nul
@cd "build\$(AWOOPLATFORM)" && .\awoomu.exe -i "$(AWOODIR)\data\bin\input.awooxe"
run: build
@if exist "$(AWOODIR)\bin\dev" rmdir /S /Q "$(AWOODIR)\bin\dev"
@xcopy "build\$(AWOOPLATFORM)" "$(AWOODIR)\bin\dev\" /E /C /I >nul
@cd "build\$(AWOOPLATFORM)" && .\awoocc.exe -i "$(AWOODIR)\data\src" -o "$(AWOODIR)\data\obj" -q
@cd "build\$(AWOOPLATFORM)" && .\awoold.exe -i "$(AWOODIR)\data\obj" -o "$(AWOODIR)\data\bin\input.awooxe" -q
@cd "build\$(AWOOPLATFORM)" && .\awoomu.exe -i "$(AWOODIR)\data\bin\input.awooxe"
clean:
@if exist "build" rmdir /S /Q build