-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 1.3 KB
/
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
34
BINARY_NAME=dither
BUILD_DIR=build
build:
go build -o ${BUILD_DIR}/${BINARY_NAME} main.go
clean:
go clean
rm -rf ${BUILD_DIR}
test:
go test ./...
dep:
go mod download
vet:
go vet
lint:
golangci-lint run --enable-all
examples: build
${BUILD_DIR}/${BINARY_NAME} --in examples/michelangelo/in.png --out examples/michelangelo/out.png --out-format png
${BUILD_DIR}/${BINARY_NAME} --in examples/baby/in.png --out examples/baby/out.png --out-format png
${BUILD_DIR}/${BINARY_NAME} --in examples/american_gothic/in.jpg --out examples/american_gothic/out.jpg --out-format jpeg
${BUILD_DIR}/${BINARY_NAME} --in examples/milkyway/in.png --out examples/milkyway/out.png --out-format png
${BUILD_DIR}/${BINARY_NAME} --in examples/gopher/in.png --out examples/gopher/out.png --out-format png
${BUILD_DIR}/${BINARY_NAME} --in examples/factors/in.png --out examples/factors/out_1.png --out-format png --factor 1
${BUILD_DIR}/${BINARY_NAME} --in examples/factors/in.png --out examples/factors/out_2.png --out-format png --factor 2
${BUILD_DIR}/${BINARY_NAME} --in examples/factors/in.png --out examples/factors/out_3.png --out-format png --factor 3
${BUILD_DIR}/${BINARY_NAME} --in examples/factors/in.png --out examples/factors/out_4.png --out-format png --factor 4
.PHONY: build run clean test test_coverage dep vet lint