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
|
2011-06-09 14:54:05 -05:00
|
|
|
SHLIBS_DIRS += libuuid
|
2010-07-28 15:40:04 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_LIBBLKID
|
2011-06-09 15:04:24 -05:00
|
|
|
SHLIBS_DIRS += libblkid
|
2010-07-28 15:40:04 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_LIBMOUNT
|
2011-06-09 14:59:52 -05:00
|
|
|
SHLIBS_DIRS += libmount
|
2010-07-28 15:40:04 -05:00
|
|
|
endif
|
|
|
|
|
2010-10-21 08:00:47 -05:00
|
|
|
MAN_DIRS = man/ru
|
|
|
|
|
2007-05-15 13:46:08 -05:00
|
|
|
SUBDIRS = \
|
2012-02-08 02:51:34 -06:00
|
|
|
$(MAN_DIRS) \
|
|
|
|
$(SHLIBS_DIRS) \
|
2006-12-06 17:26:54 -06:00
|
|
|
disk-utils \
|
|
|
|
fdisk \
|
|
|
|
getopt \
|
2012-02-08 02:51:34 -06:00
|
|
|
include \
|
2007-11-28 05:27:00 -06:00
|
|
|
lib \
|
2006-12-06 17:26:54 -06:00
|
|
|
login-utils \
|
|
|
|
misc-utils \
|
|
|
|
po \
|
|
|
|
sys-utils \
|
2011-03-02 06:44:02 -06:00
|
|
|
term-utils \
|
2012-02-08 02:51:34 -06:00
|
|
|
tests \
|
|
|
|
text-utils
|
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-06-20 06:51:26 -05:00
|
|
|
if BUILD_SCHEDUTILS
|
|
|
|
SUBDIRS += schedutils
|
|
|
|
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 = \
|
2012-02-08 02:51:34 -06:00
|
|
|
.version \
|
|
|
|
autogen.sh \
|
|
|
|
Documentation \
|
|
|
|
po/update-potfiles \
|
|
|
|
README.licensing
|
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)
|
|
|
|
|
2012-01-04 07:25:21 -06:00
|
|
|
checkxalloc:
|
|
|
|
@ $(top_srcdir)/tools/checkxalloc.sh
|
2008-11-26 05:42:35 -06:00
|
|
|
|
2011-09-12 07:12:43 -05:00
|
|
|
ENABLE_ALL = --enable-static-programs --enable-most-builds
|
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 $@
|
|
|
|
|
2012-01-18 14:29:52 -06:00
|
|
|
CHANGELOG_FILE = v$(VERSION)-ChangeLog
|
2012-01-19 03:32:32 -06:00
|
|
|
|
|
|
|
$(CHANGELOG_FILE):
|
|
|
|
@ if test "x$$PREVIOUS_VERSION" == "x"; then \
|
2012-01-18 14:29:52 -06:00
|
|
|
echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
@ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
|
|
|
|
@ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
|
|
|
|
@ echo >> $(CHANGELOG_FILE)
|
|
|
|
$(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
|
|
|
|
|
2012-01-19 03:32:32 -06:00
|
|
|
changelog: $(CHANGELOG_FILE)
|
|
|
|
|
|
|
|
|