addrcheck: Take the domain as following the last `@', not the first.
[qmail] / Makefile
index f3d8ebd..7fbef63 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,12 @@ SHELL=/bin/sh
 
 default: it
 
+addrcheck-test.o: addrcheck.c
+       ./compile -DTEST -o addrcheck-test.o addrcheck.c
+addrcheck-test: \
+load addrcheck-test.o cdb.a wait.a stralloc.a alloc.a error.a str.a
+       ./load addrcheck-test cdb.a wait.a stralloc.a alloc.a error.a str.a
+
 addresses.0: \
 addresses.5
        nroff -man addresses.5 > addresses.0