52269d22f3
If stream status is not checked at the end of execution below problem would not report error, or non-zero exit code. The uptime is just an example same was true with all commands of the project. $ uptime >&- ; echo $? uptime: write error: Bad file descriptor 1 $ uptime >/dev/full ; echo $? uptime: write error: No space left on device 1 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
30 lines
419 B
Makefile
30 lines
419 B
Makefile
AM_CPPFLAGS = \
|
|
-include $(top_builddir)/config.h \
|
|
-I$(top_srcdir)/include \
|
|
-DLOCALEDIR=\"$(localedir)\"
|
|
|
|
AM_LDFLAGS = ../proc/libprocps.la
|
|
|
|
if WITH_NCURSES
|
|
usrbin_exec_PROGRAMS = \
|
|
top
|
|
|
|
top_SOURCES = \
|
|
top.h \
|
|
top.c \
|
|
top_nls.h \
|
|
top_nls.c \
|
|
$(top_srcdir)/lib/fileutils.c
|
|
|
|
dist_man_MANS = \
|
|
top.1
|
|
|
|
top_LDADD = @NCURSES_LIBS@
|
|
endif
|
|
|
|
EXTRA_DIST =
|
|
|
|
procpsngdir = $(docdir)
|
|
dist_procpsng_DATA = \
|
|
README.top
|