mirror of
https://github.com/celogeek/imgcat.git
synced 2025-05-24 15:52:38 +02:00
15 lines
343 B
Makefile
15 lines
343 B
Makefile
SRC=./cmd
|
|
BINARY=imgcat
|
|
BINARY_SRC=$(SRC)/imgcat
|
|
SOURCES=$(shell find $(BINARY_SRC) -name "*.go")
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
$(BINARY): $(SOURCES)
|
|
go build $(BINARY_SRC)
|
|
|
|
all: $(BINARY) test
|
|
|
|
test:
|
|
./$(BINARY) -url "https://images.pexels.com/photos/2558605/pexels-photo-2558605.jpeg?cs=srgb&dl=pexels-anel-rossouw-2558605.jpg&fm=jpg" -height 25
|