Skip to content

Commit 50f366e

Browse files
committed
x64 and x86 building commands added to the Makefile
1 parent f7df5b1 commit 50f366e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Makefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,29 @@ build:
77
@echo -e "\e[96mBuilding the \e[94mUser Interface\e[39m"
88
@cd webserver && statik -src=public -f 1>/dev/null
99
@mkdir -p bin
10-
@mkdir -p bin/config
1110
@export GHW_DISABLE_WARNINGS=1
1211
@cp -f config.json bin/config.json
1312
@echo -e "\e[96mBuilding \e[93mthe source\e[39m"
1413
@go build -o bin/lwnsimulator cmd/main.go
1514
@echo -e "\e[92mBuild Complete\e[39m"
1615

16+
build-platform:
17+
@echo -e "\e[96mBuilding the \e[95mLWN Simulator (${SUFFIX})\e[39m"
18+
@echo -e "\e[96mBuilding the \e[94mUser Interface\e[39m"
19+
@cd webserver && statik -src=public -f 1>/dev/null
20+
@mkdir -p bin
21+
@export GHW_DISABLE_WARNINGS=1
22+
@cp -f config.json bin/config.json
23+
@echo -e "\e[96mBuilding \e[93mthe source\e[39m"
24+
@go build -o bin/lwnsimulator${SUFFIX} cmd/main.go
25+
@echo -e "\e[92mBuild Complete\e[39m"
26+
27+
build-x64:
28+
@make build-platform GOOS=linux GOARCH=amd64 SUFFIX="_x64"
29+
30+
build-x86:
31+
@make build-platform GOOS=linux GOARCH=386 SUFFIX="_x86"
32+
1733
run:
1834
@go run cmd/main.go
1935

webserver/statik/statik.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)