2006-12-06 17:26:54 -06:00
|
|
|
include $(top_srcdir)/config/include-Makefile.am
|
|
|
|
|
2010-07-28 15:40:04 -05:00
|
|
|
SHLIBS_DIRS =
|
|
|
|
|
|
|
|
if BUILD_LIBUUID
|
|
|
|
SHLIBS_DIRS += shlibs/uuid
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_LIBBLKID
|
|
|
|
SHLIBS_DIRS += shlibs/blkid
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_LIBMOUNT
|
|
|
|
SHLIBS_DIRS += shlibs/mount
|
|
|
|
endif
|
|
|
|
|
2010-10-21 08:00:47 -05:00
|
|
|
MAN_DIRS = man/ru
|
|
|
|
|
2007-05-15 13:46:08 -05:00
|
|
|
SUBDIRS = \
|
2007-01-03 15:20:44 -06:00
|
|
|
include \
|
2006-12-06 17:26:54 -06:00
|
|
|
disk-utils \
|
|
|
|
fdisk \
|
|
|
|
getopt \
|
2007-11-28 05:27:00 -06:00
|
|
|
lib \
|
2010-07-28 15:40:04 -05:00
|
|
|
$(SHLIBS_DIRS) \
|
2010-10-21 08:00:47 -05:00
|
|
|
$(MAN_DIRS) \
|
2006-12-06 17:26:54 -06:00
|
|
|
login-utils \
|
|
|
|
misc-utils \
|
|
|
|
po \
|
|
|
|
schedutils \
|
|
|
|
sys-utils \
|
2011-03-02 06:44:02 -06:00
|
|
|
term-utils \
|
2007-01-04 07:23:48 -06:00
|
|
|
text-utils \
|
|
|
|
tests
|
2006-12-06 17:26:54 -06:00
|
|
|
|
2008-11-26 05:42:35 -06:00
|
|
|
|
2011-02-26 08:37:20 -06:00
|
|
|
RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
|
2008-11-26 05:42:35 -06:00
|
|
|
-name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
|
|
|
|
|
2011-03-02 19:18:32 -06:00
|
|
|
if BUILD_HWCLOCK
|
|
|
|
SUBDIRS += hwclock
|
|
|
|
endif
|
|
|
|
|
2011-03-16 11:39:54 -05:00
|
|
|
if BUILD_PARTX
|
2011-03-02 19:18:32 -06:00
|
|
|
SUBDIRS += partx
|
2007-11-04 09:54:27 -06:00
|
|
|
endif
|
|
|
|
|
2008-11-14 10:40:25 -06:00
|
|
|
if BUILD_MOUNT
|
|
|
|
SUBDIRS += mount
|
|
|
|
endif
|
|
|
|
|
2009-02-18 08:06:49 -06:00
|
|
|
if BUILD_FSCK
|
|
|
|
SUBDIRS += fsck
|
|
|
|
endif
|
|
|
|
|
2011-05-21 08:02:10 -05:00
|
|
|
AUTOMAKE_OPTIONS = gnu
|
2006-12-06 17:26:54 -06:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2007-05-15 13:46:28 -05:00
|
|
|
EXTRA_DIST = \
|
2011-03-31 15:10:07 -05:00
|
|
|
.version \
|
2007-01-04 04:57:07 -06:00
|
|
|
autogen.sh \
|
2007-05-15 13:46:27 -05:00
|
|
|
README.devel \
|
2007-08-14 05:27:55 -05:00
|
|
|
README.licensing \
|
2007-08-20 07:37:52 -05:00
|
|
|
DEPRECATED \
|
2007-07-26 08:21:50 -05:00
|
|
|
licenses \
|
|
|
|
example.files \
|
2007-06-15 03:17:51 -05:00
|
|
|
po/update-potfiles \
|
2007-07-03 16:16:13 -05:00
|
|
|
tools \
|
|
|
|
docs
|
2007-02-08 05:38:25 -06:00
|
|
|
|
2011-03-31 15:10:07 -05:00
|
|
|
# Arrange so that .tarball-version appears only in the distribution
|
|
|
|
# tarball, and never in a checked-out repository.
|
|
|
|
dist-hook:
|
|
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
2011-05-21 08:02:10 -05:00
|
|
|
# Set ChangeLog tag reference.
|
|
|
|
sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
|
2006-12-06 17:26:58 -06:00
|
|
|
|
|
|
|
distclean-local:
|
2007-05-15 13:46:30 -05:00
|
|
|
-find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
|
2006-12-06 17:26:58 -06:00
|
|
|
rm -rf autom4te.cache
|
2007-01-03 15:20:44 -06:00
|
|
|
|
2008-11-26 05:42:35 -06:00
|
|
|
|
|
|
|
checkincludes:
|
2008-11-26 06:42:16 -06:00
|
|
|
@find * $(RCS_FIND_IGNORE) \
|
2008-11-26 05:42:35 -06:00
|
|
|
-name '*.[hcS]' -type f -print | sort -u \
|
|
|
|
| xargs $(top_srcdir)/tools/checkincludes.pl
|
|
|
|
|
2008-11-26 06:42:16 -06:00
|
|
|
checkconfig:
|
|
|
|
@find * $(RCS_FIND_IGNORE) \
|
|
|
|
-name '*.[hcS]' -type f -print | sort -u \
|
|
|
|
| xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
|
|
|
|
|
2008-11-26 05:42:35 -06:00
|
|
|
|
2009-11-05 16:37:15 -06:00
|
|
|
ENABLE_ALL = --enable-static-programs \
|
2011-06-08 06:20:37 -05:00
|
|
|
--enable-elvtune --enable-kill --enable-last \
|
2007-05-15 13:46:23 -05:00
|
|
|
--enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \
|
2008-11-14 10:40:25 -06:00
|
|
|
--enable-login-utils --enable-write --enable-arch --enable-mount
|
2009-09-16 14:25:38 -05:00
|
|
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)
|
2011-03-31 15:10:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
BUILT_SOURCES = .version
|
|
|
|
.version:
|
|
|
|
echo $(VERSION) > $@-t && mv $@-t $@
|
|
|
|
|