]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(unit-test): New target.
authorJim Meyering <jim@meyering.net>
Sun, 5 Dec 2004 19:37:49 +0000 (19:37 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 5 Dec 2004 19:37:49 +0000 (19:37 +0000)
(check): Depend on it.
(noinst_PROGRAMS): Define.

lib/Makefile.am

index 2561311efbfb758a9e7db3da2898dfa4ae57b37b..90eea079ddbb40f7cbe4963fd872e403a367fde4 100644 (file)
@@ -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)