Skip to content

Commit

Permalink
pull Makefile from main
Browse files Browse the repository at this point in the history
  • Loading branch information
sroomberg-ep committed Jan 13, 2025
1 parent 09f5b1c commit 430941c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ node_modules/build:
.build/bin/hound: $(SRCS)
go build -o $@ github.com/hound-search/hound/cmds/hound

.build/bin/go-bindata:
GOPATH=`pwd`/.build go install github.com/go-bindata/go-bindata/...

ui/bindata.go: .build/bin/go-bindata node_modules $(wildcard ui/assets/**/*)
rsync -r ui/assets/* .build/ui
ui/.build/ui: node_modules/build $(UI)
mkdir -p ui/.build/ui
cp -r ui/assets/* ui/.build/ui
npx webpack $(WEBPACK_ARGS)

dev: node_modules/build
Expand All @@ -39,10 +37,11 @@ test:

lint:
export GO111MODULE=on
go install github.com/golangci/golangci-lint/cmd/golangci-lint
go get github.com/golangci/golangci-lint/cmd/golangci-lint
export GOPATH=/tmp/gopath
export PATH=$GOPATH/bin:$PATH
golangci-lint run ./...

clean:
rm -rf .build ui/.build node_modules

0 comments on commit 430941c

Please sign in to comment.