mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
31 lines
648 B
Makefile
31 lines
648 B
Makefile
.DEFAULT_GOAL = all
|
|
|
|
version := $(shell git rev-list --count HEAD).$(shell git rev-parse --short HEAD)
|
|
|
|
name := uarand
|
|
package := github.com/corpix/$(name)
|
|
|
|
.PHONY: all
|
|
all:: useragents.go
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test -v ./...
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
go vet ./...
|
|
|
|
.PHONY: check
|
|
check: lint test
|
|
|
|
.PHONY: useragents.go
|
|
useragents.go:
|
|
curl -Ls -H'User-Agent: gotohellwithyour403' \
|
|
http://techpatterns.com/downloads/firefox/useragentswitcher.xml \
|
|
| ./scripts/extract-user-agents \
|
|
| ./scripts/generate-useragents-go $(name) \
|
|
> $@
|
|
go fmt $@
|
|
|