Add fmt target to makefile and run it
This commit is contained in:
parent
a5757c3079
commit
7bdfcf9776
5
Makefile
5
Makefile
@ -12,6 +12,9 @@ debug:
|
|||||||
$(GO) build -o $(EXE) -gcflags=all="-N -l" cmd/$(EXE)/*.go
|
$(GO) build -o $(EXE) -gcflags=all="-N -l" cmd/$(EXE)/*.go
|
||||||
dlv exec ./dischord
|
dlv exec ./dischord
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
find . -type f -name '*.go' -exec gofmt -w '{}' ';'
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
cp -f $(EXE) $(DESTDIR)$(PREFIX)/bin
|
cp -f $(EXE) $(DESTDIR)$(PREFIX)/bin
|
||||||
@ -50,7 +53,7 @@ uninstall:
|
|||||||
test:
|
test:
|
||||||
$(GO) test -count=1 -v $(EXE)/extractor
|
$(GO) test -count=1 -v $(EXE)/extractor
|
||||||
|
|
||||||
.PHONY: all debug install uninstall clean
|
.PHONY: all debug fmt install uninstall clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(EXE)
|
rm -f $(EXE)
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
"git.nobrain.org/r4/dischord/player"
|
"git.nobrain.org/r4/dischord/player"
|
||||||
"git.nobrain.org/r4/dischord/util"
|
"git.nobrain.org/r4/dischord/util"
|
||||||
|
|
||||||
|
_ "embed"
|
||||||
"errors"
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
@ -21,7 +22,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
_ "embed"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var copyright bool
|
var copyright bool
|
||||||
|
Loading…
Reference in New Issue
Block a user