Files
ansi/Makefile
T
funkpower 74a684c269 ansi: show ANSI art in a UTF-8 terminal, or as plain or shaded text
Draws an .ans file into a grid the way an ANSI-BBS terminal would (cursor
moves, the wrap at the SAUCE width, iCE colours) and writes it out as UTF-8:
in colour, --plain, or --mono with coloured areas shaded by brightness. info
prints the SAUCE record. One C99 file with no dependencies.
2026-10-22 19:30:17 -04:00

19 lines
395 B
Makefile

PREFIX ?= $(HOME)
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man/man1
CFLAGS ?= -O2
CFLAGS += -std=c99 -Wall -Wextra -pedantic
ansi: ansi.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ ansi.c
install: ansi
install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
install -m 755 ansi $(DESTDIR)$(BINDIR)/ansi
install -m 644 ansi.1 $(DESTDIR)$(MANDIR)/ansi.1
clean:
rm -f ansi
.PHONY: install clean