Commit d98851f
authored
common.mk: fix clean target to remove binaries, not source directories (#183)
The clean target was using 'rm -rf ./cmd/$(APP)' which deletes the entire
source directory. Since 'go build ./cmd/$(APP)' outputs the binary to the
current directory (not into cmd/), clean should remove './$(APP)' instead.
This prevents accidental deletion of customized cmd/ files (like the
streaming example's http.go with pingPonger).1 parent 6515582 commit d98851f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments