Skip to content

Commit 5b50428

Browse files
committed
Repaired tabs in makefile 🙄; added variable set in script.
1 parent f6a16d7 commit 5b50428

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Makefile.win

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@ all: bin/git-sizer.exe
2727

2828
# Main binary target - depend on all Go source files
2929
bin/git-sizer.exe: $(GO_SRC_FILES)
30-
$(PWSH) "if (-not (Test-Path bin)) { New-Item -ItemType Directory -Path bin | Out-Null }"
31-
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -a -o .\bin\git-sizer.exe .
30+
$(PWSH) "if (-not (Test-Path bin)) { New-Item -ItemType Directory -Path bin | Out-Null }"
31+
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -a -o .\bin\git-sizer.exe .
3232

3333
# Test target - explicitly run the build first to ensure binary is up to date
3434
test:
35-
@$(MAKE) -f Makefile.win bin/git-sizer.exe
36-
@$(MAKE) -f Makefile.win gotest
35+
@$(MAKE) -f Makefile.win bin/git-sizer.exe
36+
@$(MAKE) -f Makefile.win gotest
3737

3838
# Run go tests
3939
gotest:
40-
$(GO) test -timeout 60s $(GOFLAGS) -ldflags "$(LDFLAGS)" ./...
40+
$(GO) test -timeout 60s $(GOFLAGS) -ldflags "$(LDFLAGS)" ./...
4141

4242
# Clean up builds
4343
clean:
44-
$(PWSH) "if (Test-Path bin) { Remove-Item -Recurse -Force bin }"
44+
$(PWSH) "if (Test-Path bin) { Remove-Item -Recurse -Force bin }"
4545

4646
# Help target
4747
help:
48-
$(PWSH) "Write-Host 'Windows Makefile for git-sizer' -ForegroundColor Cyan"
49-
$(PWSH) "Write-Host ''"
50-
$(PWSH) "Write-Host 'Targets:' -ForegroundColor Green"
51-
$(PWSH) "Write-Host ' all - Build git-sizer (default)'"
52-
$(PWSH) "Write-Host ' test - Run tests'"
53-
$(PWSH) "Write-Host ' clean - Clean build artifacts'"
54-
$(PWSH) "Write-Host ''"
55-
$(PWSH) "Write-Host 'Example usage:' -ForegroundColor Green"
56-
$(PWSH) "Write-Host ' nmake -f Makefile.win'"
57-
$(PWSH) "Write-Host ' nmake -f Makefile.win test'"
48+
$(PWSH) "Write-Host 'Windows Makefile for git-sizer' -ForegroundColor Cyan"
49+
$(PWSH) "Write-Host ''"
50+
$(PWSH) "Write-Host 'Targets:' -ForegroundColor Green"
51+
$(PWSH) "Write-Host ' all - Build git-sizer (default)'"
52+
$(PWSH) "Write-Host ' test - Run tests'"
53+
$(PWSH) "Write-Host ' clean - Clean build artifacts'"
54+
$(PWSH) "Write-Host ''"
55+
$(PWSH) "Write-Host 'Example usage:' -ForegroundColor Green"
56+
$(PWSH) "Write-Host ' make -f Makefile.win'"
57+
$(PWSH) "Write-Host ' make -f Makefile.win test'"

script/ensure-go-installed.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This script is meant to be sourced with ROOTDIR set.
22

33
if (-not $env:ROOTDIR) {
4-
Write-Error 'ensure-go-installed.ps1 invoked without ROOTDIR set!'
4+
$env:ROOTDIR = (Resolve-Path (Join-Path $scriptDir "..")).Path
55
}
66

77
# Function to check if Go is installed and at least version 1.21

0 commit comments

Comments
 (0)