From 334c1b180105ebcbba3c1bb321bc9d9cadee31ed Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 5 Dec 2004 19:37:49 +0000 Subject: [PATCH] (unit-test): New target. (check): Depend on it. (noinst_PROGRAMS): Define. --- lib/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Makefile.am b/lib/Makefile.am index 2561311efb..90eea079dd 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 when the system # doesn't have one that works with the given compiler. all-local $(lib_OBJECTS): $(GETOPT_H) -- 2.47.2