BIN_DIR?=/usr/local/bin
LIB_DIR?=/usr/local/lib
COMP_DIR?=/usr/local/etc/bash_completion.d
GO_FILES=$(shell find -name '*.go')
image2ascii: $(GO_FILES)
go build .
.PHONY: clean
clean:
rm --force image2ascii
.PHONY: test
test: clean
go test
.PHONY: build
build: image2ascii
.PHONY: install
install: image2ascii
install -m755 image2ascii $(BIN_DIR)/image2ascii
.PHONY: uninstall
uninstall:
rm --force $(BIN_DIR)/image2ascii