summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-30 19:51:14 +0100
committerAki <please@ignore.pl>2024-03-30 19:51:14 +0100
commit451560809c7478af782b9675d03406f221021eb0 (patch)
treee93a4dbb7400e4df78f41ffdc438d092ff8aeccd /Makefile
parent3ee6230f47850c966147655b383eeea2b85ca052 (diff)
downloadnt-master.zip
nt-master.tar.gz
nt-master.tar.bz2
Add quick spec testsHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 73f8388..ebe2e2d 100644
--- a/Makefile
+++ b/Makefile
@@ -3,16 +3,25 @@ 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: clean install uninstall
+.PHONY: all clean test install uninstall