This commit is contained in:
Celogeek 2021-12-12 20:44:54 +01:00
parent f23f660fde
commit 5d846c4f3b
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A
3 changed files with 7 additions and 10 deletions

View File

@ -1,14 +1,11 @@
SRC=./cmd
BINARY=imgcat
BINARY_SRC=$(SRC)/imgcat
SOURCES=$(shell find $(BINARY_SRC) -name "*.go")
.DEFAULT_GOAL := all .DEFAULT_GOAL := all
$(BINARY): $(SOURCES) imgcat: main.go
go build $(BINARY_SRC) go build -o $@
all: $(BINARY) test build: imgcat
all: build test
test: test:
./$(BINARY) -u "https://images.pexels.com/photos/2558605/pexels-photo-2558605.jpeg?cs=srgb&dl=pexels-anel-rossouw-2558605.jpg&fm=jpg" -r 25 ./imgcat -u "https://images.pexels.com/photos/2558605/pexels-photo-2558605.jpeg?cs=srgb&dl=pexels-anel-rossouw-2558605.jpg&fm=jpg" -r 25

View File

@ -15,7 +15,7 @@ make
Or directly Or directly
``` ```
go build ./cmd/imgcat go build -o imgcat
``` ```
## Usage ## Usage