Commit 2020eb5
committed
Build dmr.exe on Windows in build-dmr target
The build-dmr Makefile target always built a binary named "dmr",
which is unusable on Windows because the OS requires a .exe suffix
to execute it directly. Detect Windows via the built-in $(OS)
variable and use a DMR_EXE variable for the output filename, so the
target produces dmr.exe on Windows and dmr everywhere else. This
avoids shelling out to "go env GOEXE" on every invocation, which adds
overhead and can fail if go is not on the PATH. Reuse DMR_EXE in the
clean target instead of hardcoding both dmr and dmr.exe so cleanup
stays in sync with the build output. Update the README to match.1 parent d62a635 commit 2020eb5
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
72 | | - | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
111 | | - | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments