forked from davemachado/public-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 629 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
NAME := davemachado/public-api
TAG := $$(git log -1 --pretty=%h)
IMG := ${NAME}:${TAG}
LATEST := ${NAME}:latest
all: build
dep:
@go get -v ./...
test:
@go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
build: dep test html
@docker build -t ${IMG} .
@docker tag ${IMG} ${LATEST}
data: html
@curl -o /tmp/public-apis.md https://raw.githubusercontent.com/public-apis/public-apis/master/README.md
@./md2json /tmp/public-apis.md > entries.json
@rm /tmp/public-apis.md
html:
mkdir -p static
pandoc --from markdown_github --to html --standalone README.md > static/index.html