You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
399 B
Makefile
25 lines
399 B
Makefile
ifndef GO
|
|
GO := go
|
|
endif
|
|
|
|
all: deps test build
|
|
|
|
deps:
|
|
$(GO) get ./...
|
|
|
|
build:
|
|
$(GO) build -o bin/fastgallery cmd/fastgallery/main.go
|
|
|
|
test:
|
|
$(GO) test -v ./...
|
|
|
|
testgallery: build
|
|
rm -rf testing/gallery/
|
|
rm -f /tmp/fastgallery.log
|
|
bin/fastgallery --log /tmp/fastgallery.log --cleanup testing/source/ testing/gallery/
|
|
|
|
clean:
|
|
rm bin/fastgallery
|
|
|
|
install: build
|
|
cp bin/fastgallery ~/.local/bin
|