imgcat/Makefile
2021-12-12 18:27:06 +01:00

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