aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 55eb9f4..934b706 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,9 @@ CFLAGS += -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs nettle)
VERSION = $(shell git describe --tags --long)
-all: nthash.c
+all: nthash
+
+nthash:
$(CC) $(CFLAGS) -o nthash nthash.c
check:
@@ -18,7 +20,7 @@ check:
$(ECHO) "testing123" | ./nthash 2>&1 | \
$(GREP) -q '^Warning: Input contains line break!$$'
-install:
+install: nthash
$(INSTALL) -D -m0755 nthash $(DESTDIR)/usr/bin/nthash
clean: