summaryrefslogtreecommitdiff
path: root/Makefile
blob: ebe2e2d17305f6d0f092d3cd548be23c7a3f22a1 (plain)
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
26
27
CFLAGS=-Wall -Wextra -Wpedantic -O3 -D_POSIX_C_SOURCE=200809L

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


all: nt


clean:
	rm -f nt


test: all
	@./test.sh


install: all
	install -Dm755 nt -t $(DESTDIR)$(BINDIR)/


uninstall:
	rm -f $(DESTDIR)$(BINDIR)/nt


.POSIX:
.PHONY: all clean test install uninstall