summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-04-22 02:11:31 +0000
committerPaul Smith <psmith@gnu.org>2002-04-22 02:11:31 +0000
commit3a8a7a5d00c7052c46cef2342792d6a0829db897 (patch)
treebfecbd608103b0858b7845a8aacddf45fa6a481f /Makefile.am
parent7ed1a08985ee943646612563e1fc09f5d51425f8 (diff)
downloadgunmake-3a8a7a5d00c7052c46cef2342792d6a0829db897.tar.gz
Updates and fixes for CVS builds.
Created a README.cvs describing the procedure.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am25
1 files changed, 7 insertions, 18 deletions
diff --git a/Makefile.am b/Makefile.am
index 753ca9b..dfd6929 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,6 +32,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(inc
AM_CPPFLAGS = $(GLOBINC)
+
EXTRA_DIST = build.sh.in $(man_MANS)\
README.customs\
make-stds.texi SCOPTIONS SMakefile\
@@ -41,10 +42,6 @@ EXTRA_DIST = build.sh.in $(man_MANS)\
readme.vms makefile.vms makefile.com config.h-vms \
vmsdir.h vmsfunctions.c vmsify.c
-
-MOSTLYCLEANFILES = loadavg.c
-CLEANFILES = loadavg
-
MAKE_HOST = @MAKE_HOST@
@@ -105,25 +102,17 @@ check-local: check-regression check-loadavg
.PHONY: check-loadavg check-regression
-# > check-loadavg
-#
-loadavg: loadavg.c config.h
- @rm -f loadavg
- $(LINK) -DTEST $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(make_LDFLAGS) loadavg.c $(LIBS)
-
-# We copy getloadavg.c into a different file rather than compiling it
-# directly because some compilers clobber getloadavg.o in the process.
-#
-loadavg.c: getloadavg.c
- ln $(srcdir)/getloadavg.c loadavg.c || \
- cp $(srcdir)/getloadavg.c loadavg.c
-
check-loadavg: loadavg
@echo The system uptime program believes the load average to be:
-uptime
- @echo The GNU load average checking code believes:
+ @echo The GNU load average checking code thinks:
-./loadavg
+# The loadavg function is invoked during "make check" to test getloadavg.
+noinst_PROGRAMS = loadavg
+loadavg_SOURCES = getloadavg.c
+loadavg_CFLAGS = -DTEST
+
# > check-regression
#
# Look for the make test suite, and run it if found and we can find perl.