-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 809 Bytes
/
Makefile
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
26
27
28
29
30
31
32
33
GO := go
SERVICES := node1 client
install:
$(GO) install github.com/istoican/flux
deps:
cd vendor && $(NPM) install
image:
docker build . -t "istoican/flux"
docker:
docker-compose up --build ${SERVICES}
cmd/fluxd/fluxd:
go build -o $@ ./$(@D)
cmd/flux/flux:
go build -o $@ ./$(@D)
clean:
rm -f cmd/flux/flux
rm -f cmd/fluxd/fluxd
stats:
@echo "Number of printed pages: $(shell find ./ -type f \( -iname \*.go -o -iname \*.css -o -iname \*.js -o -iname \*.html \) -print0 | xargs -0 cat | wc -l) / 40"
@echo "Go lines: \t\t$(shell find ./ -name '*.go' -print0 | xargs -0 cat | wc -l)"
@echo "Javascript lines: \t$(shell find ./ -name '*.js' -print0 | xargs -0 cat | wc -l)"
@echo "CSS lines: \t\t$(shell find ./ -name '*.css' -print0 | xargs -0 cat | wc -l)"
.PHONY: install deps stats