summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-12-05 19:37:49 +0000
committerJim Meyering <jim@meyering.net>2004-12-05 19:37:49 +0000
commit334c1b180105ebcbba3c1bb321bc9d9cadee31ed (patch)
treec62dedb9a9d6b1c3cc1cff301e875c2f43f21d96
parentff13a286c7769664614d835c09653c83fcb1cb6c (diff)
downloadcoreutils-334c1b180105ebcbba3c1bb321bc9d9cadee31ed.tar.xz
(unit-test): New target.
(check): Depend on it. (noinst_PROGRAMS): Define.
-rw-r--r--lib/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 2561311ef..90eea079d 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -18,6 +18,7 @@
## 02111-1307, USA.
noinst_LIBRARIES = libfetish.a
+noinst_PROGRAMS = t-fpending
AM_CPPFLAGS = -I.. -I$(srcdir)
DEFS += -DLIBDIR=\"$(libdir)\"
@@ -246,6 +247,11 @@ MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
BUILT_SOURCES += $(GETOPT_H)
EXTRA_DIST += getopt_.h getopt_int.h
+check: unit-test
+
+unit-test:
+ ./t-fpending > /dev/null
+
# We need the following in order to create an <getopt.h> when the system
# doesn't have one that works with the given compiler.
all-local $(lib_OBJECTS): $(GETOPT_H)