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.
19 lines
395 B
Makefile
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
|