2014-06-24 20:20:13 +08:00
|
|
|
#AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
|
2012-01-02 23:08:58 +08:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-include $(top_builddir)/config.h \
|
2015-05-02 08:09:39 +08:00
|
|
|
-I$(top_srcdir) \
|
2012-01-02 23:08:58 +08:00
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-DLOCALEDIR=\"$(localedir)\"
|
2011-06-04 22:26:58 +08:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2011-10-09 03:14:21 +08:00
|
|
|
SUBDIRS = \
|
2011-10-19 16:37:03 +08:00
|
|
|
include \
|
2011-10-19 02:54:30 +08:00
|
|
|
lib \
|
2014-06-28 21:38:13 +08:00
|
|
|
man-po \
|
2011-10-09 03:14:21 +08:00
|
|
|
po \
|
|
|
|
proc \
|
|
|
|
ps \
|
2011-10-12 03:02:59 +08:00
|
|
|
testsuite \
|
|
|
|
top
|
2011-06-04 22:26:58 +08:00
|
|
|
|
|
|
|
AM_CFLAGS = -Iproc
|
2011-12-23 06:18:43 +08:00
|
|
|
AM_LDFLAGS = ./proc/libprocps.la
|
2011-06-04 22:26:58 +08:00
|
|
|
|
|
|
|
sbin_PROGRAMS = \
|
|
|
|
sysctl
|
|
|
|
|
|
|
|
usrbin_exec_PROGRAMS = \
|
|
|
|
free \
|
|
|
|
pgrep \
|
|
|
|
pkill \
|
|
|
|
pmap \
|
|
|
|
pwdx \
|
|
|
|
tload \
|
|
|
|
uptime \
|
|
|
|
vmstat \
|
|
|
|
w
|
|
|
|
|
|
|
|
dist_man_MANS = \
|
|
|
|
free.1 \
|
|
|
|
pgrep.1 \
|
|
|
|
pkill.1 \
|
|
|
|
pmap.1 \
|
|
|
|
pwdx.1 \
|
|
|
|
sysctl.8 \
|
|
|
|
sysctl.conf.5 \
|
|
|
|
tload.1 \
|
|
|
|
uptime.1 \
|
|
|
|
vmstat.8 \
|
2014-09-16 01:55:13 +08:00
|
|
|
w.1
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2012-05-20 15:27:14 +08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
autogen.sh \
|
|
|
|
contrib \
|
|
|
|
COPYING.LIB \
|
|
|
|
misc/git-version-gen \
|
|
|
|
Documentation/CodingStyle \
|
|
|
|
Documentation/TODO \
|
2014-06-25 21:11:15 +08:00
|
|
|
sysctl.conf \
|
|
|
|
$(DIST_MAN_POTS)
|
2012-05-20 15:27:14 +08:00
|
|
|
|
2013-10-05 02:35:01 +08:00
|
|
|
if BUILD_PIDOF
|
|
|
|
usrbin_exec_PROGRAMS += pidof
|
|
|
|
dist_man_MANS += pidof.1
|
2015-05-02 12:36:40 +08:00
|
|
|
pidof_SOURCES = pidof.c lib/fileutils.c
|
2013-10-05 02:35:01 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += pidof.1
|
|
|
|
endif
|
|
|
|
|
2011-10-05 02:16:46 +08:00
|
|
|
if BUILD_KILL
|
|
|
|
bin_PROGRAMS = kill
|
|
|
|
dist_man_MANS += kill.1
|
2015-05-02 12:36:40 +08:00
|
|
|
kill_SOURCES = skill.c lib/strutils.c lib/fileutils.c lib/nsutils.c
|
2012-05-20 15:27:14 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += kill.1
|
2011-10-05 02:16:46 +08:00
|
|
|
endif
|
|
|
|
|
2011-10-27 05:53:55 +08:00
|
|
|
if WITH_NCURSES
|
2011-06-04 22:26:58 +08:00
|
|
|
usrbin_exec_PROGRAMS += \
|
|
|
|
slabtop \
|
|
|
|
watch
|
|
|
|
dist_man_MANS += \
|
|
|
|
slabtop.1 \
|
|
|
|
watch.1
|
2015-05-02 12:36:40 +08:00
|
|
|
slabtop_SOURCES = slabtop.c lib/strutils.c lib/fileutils.c
|
2011-06-04 22:26:58 +08:00
|
|
|
slabtop_LDADD = @NCURSES_LIBS@
|
2015-05-02 12:36:40 +08:00
|
|
|
watch_SOURCES = watch.c lib/strutils.c lib/fileutils.c
|
2012-01-09 18:40:53 +08:00
|
|
|
watch_LDADD = @WATCH_NCURSES_LIBS@
|
2011-06-04 22:26:58 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-16 04:29:13 +08:00
|
|
|
if BUILD_SKILL
|
|
|
|
usrbin_exec_PROGRAMS += \
|
|
|
|
skill \
|
|
|
|
snice
|
2015-05-02 12:36:40 +08:00
|
|
|
skill_SOURCES = skill.c lib/strutils.c lib/fileutils.c lib/nsutils.c
|
|
|
|
snice_SOURCES = skill.c lib/strutils.c lib/fileutils.c lib/nsutils.c
|
2012-03-16 04:29:13 +08:00
|
|
|
dist_man_MANS += \
|
|
|
|
skill.1 \
|
|
|
|
snice.1
|
2012-05-20 15:27:14 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += \
|
|
|
|
skill.1 \
|
|
|
|
snice.1
|
2012-03-16 04:29:13 +08:00
|
|
|
endif
|
|
|
|
|
2015-05-02 12:36:40 +08:00
|
|
|
free_SOURCES = free.c lib/strutils.c lib/fileutils.c
|
|
|
|
pgrep_SOURCES = pgrep.c lib/fileutils.c lib/nsutils.c
|
|
|
|
pkill_SOURCES = pgrep.c lib/fileutils.c lib/nsutils.c
|
|
|
|
pmap_SOURCES = pmap.c lib/fileutils.c
|
|
|
|
pwdx_SOURCES = pwdx.c lib/fileutils.c
|
|
|
|
sysctl_SOURCES = sysctl.c lib/fileutils.c
|
|
|
|
tload_SOURCES = tload.c lib/strutils.c lib/fileutils.c
|
|
|
|
uptime_SOURCES = uptime.c lib/fileutils.c
|
|
|
|
vmstat_SOURCES = vmstat.c lib/strutils.c lib/fileutils.c
|
|
|
|
w_SOURCES = w.c lib/fileutils.c
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2012-04-29 23:22:29 +08:00
|
|
|
if EXAMPLE_FILES
|
2011-06-04 22:26:58 +08:00
|
|
|
sysconf_DATA = sysctl.conf
|
2012-04-29 23:22:29 +08:00
|
|
|
endif
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2011-10-06 22:26:24 +08:00
|
|
|
procpsngdir = $(docdir)
|
|
|
|
dist_procpsng_DATA = \
|
2012-01-08 00:57:07 +08:00
|
|
|
Documentation/BUGS \
|
|
|
|
Documentation/FAQ
|
2012-05-20 15:27:14 +08:00
|
|
|
|
2012-06-24 18:51:18 +08:00
|
|
|
BUILT_SOURCES = $(top_srcdir)/.version
|
2014-06-24 20:20:13 +08:00
|
|
|
|
2012-05-20 15:27:14 +08:00
|
|
|
$(top_srcdir)/.version:
|
2012-06-24 18:51:18 +08:00
|
|
|
touch $(top_srcdir)/.version
|
2012-05-20 15:27:14 +08:00
|
|
|
echo $(VERSION) > $@-t && mv $@-t $@
|
|
|
|
dist-hook:
|
|
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
2014-06-25 21:11:15 +08:00
|
|
|
|
2014-02-22 08:34:53 +08:00
|
|
|
get-trans:
|
2014-05-28 17:51:37 +08:00
|
|
|
echo "Getting the latest translations from translationproject.org..."
|
2014-04-17 15:12:01 +08:00
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng/ po
|
2014-05-28 17:51:37 +08:00
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man/ man-po
|
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man-ps/ man-po/ps
|
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man-top/ man-po/top
|