mirror of
https://github.com/celogeek/imgcat.git
synced 2025-05-24 15:52:38 +02:00
simplify
This commit is contained in:
parent
f23f660fde
commit
5d846c4f3b
15
Makefile
15
Makefile
@ -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
|
||||||
|
@ -15,7 +15,7 @@ make
|
|||||||
|
|
||||||
Or directly
|
Or directly
|
||||||
```
|
```
|
||||||
go build ./cmd/imgcat
|
go build -o imgcat
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user