~ajpaon/image-to-ansi

f471bd1211286f067df89d45f1c98b9fe5b52712 — Andrew Paon 2 years ago da1eea8
Add install/uninstall makefile targets
1 files changed, 10 insertions(+), 1 deletions(-)

M makefile
M makefile => makefile +10 -1
@@ 1,6 1,9 @@
CC=clang
CFLAGS=-Wall -g

PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin

all: bmp-to-ansi

bmp-to-ansi: main.o


@@ 9,4 12,10 @@ bmp-to-ansi: main.o
clean:
	rm -f *.o bmp-to-ansi

.PHONY: all clean
install: all
	install bmp-to-ansi $(BINDIR)

uninstall:
	rm -f $(BINDIR)/bmp-to-ansi

.PHONY: all clean install uninstall