ansi2text/Makefile

21 lines
547 B
Makefile
Raw Normal View History

# Copyright (c) 2020 Michael Small <smallm@sdf.org>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty, provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
all: ansi2text
ansi2text: ansi2text.o
install: ansi2text
install -d $(BINDIR) $(MANDIR) $(MANDIR)/man1
install -m 755 -t $(BINDIR) ansi2text
install -m 444 -t $(MANDIR)/man1 ansi2text.1