Skip to content

Commit

Permalink
x64 and x86 building commands added to the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pippok96 committed May 5, 2021
1 parent f7df5b1 commit 50f366e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,29 @@ build:
@echo -e "\e[96mBuilding the \e[94mUser Interface\e[39m"
@cd webserver && statik -src=public -f 1>/dev/null
@mkdir -p bin
@mkdir -p bin/config
@export GHW_DISABLE_WARNINGS=1
@cp -f config.json bin/config.json
@echo -e "\e[96mBuilding \e[93mthe source\e[39m"
@go build -o bin/lwnsimulator cmd/main.go
@echo -e "\e[92mBuild Complete\e[39m"

build-platform:
@echo -e "\e[96mBuilding the \e[95mLWN Simulator (${SUFFIX})\e[39m"
@echo -e "\e[96mBuilding the \e[94mUser Interface\e[39m"
@cd webserver && statik -src=public -f 1>/dev/null
@mkdir -p bin
@export GHW_DISABLE_WARNINGS=1
@cp -f config.json bin/config.json
@echo -e "\e[96mBuilding \e[93mthe source\e[39m"
@go build -o bin/lwnsimulator${SUFFIX} cmd/main.go
@echo -e "\e[92mBuild Complete\e[39m"

build-x64:
@make build-platform GOOS=linux GOARCH=amd64 SUFFIX="_x64"

build-x86:
@make build-platform GOOS=linux GOARCH=386 SUFFIX="_x86"

run:
@go run cmd/main.go

Expand Down
2 changes: 1 addition & 1 deletion webserver/statik/statik.go

Large diffs are not rendered by default.

0 comments on commit 50f366e

Please sign in to comment.