about summary refs log tree commit diff
path: root/Makefile
blob: 8c97b96ac0a0dfc16198637b9b9ec355e532490a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ALL=fail

NOWARN=-Wno-switch -Wno-infinite-recursion -Wno-array-bounds -Wno-stringop-overflow
CFLAGS=-g -O1 -Wall -Wextra -Wwrite-strings $(NOWARN) -fPIE
LDFLAGS=-pie

DESTDIR=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man

all: $(ALL)

README: fail.1
	mandoc -Tutf8 $< | col -bx >$@

clean: FRC
	rm -f $(ALL)

install: FRC all
	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
	install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1

FRC: