]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Makefile.am
build-sys: move BUILD_SCHEDUTILS to top-level Makefile
[thirdparty/util-linux.git] / Makefile.am
1 include $(top_srcdir)/config/include-Makefile.am
2
3 SHLIBS_DIRS =
4
5 if BUILD_LIBUUID
6 SHLIBS_DIRS += libuuid
7 endif
8
9 if BUILD_LIBBLKID
10 SHLIBS_DIRS += libblkid
11 endif
12
13 if BUILD_LIBMOUNT
14 SHLIBS_DIRS += libmount
15 endif
16
17 MAN_DIRS = man/ru
18
19 SUBDIRS = \
20 include \
21 disk-utils \
22 fdisk \
23 getopt \
24 lib \
25 $(SHLIBS_DIRS) \
26 $(MAN_DIRS) \
27 login-utils \
28 misc-utils \
29 po \
30 sys-utils \
31 term-utils \
32 text-utils \
33 tests
34
35
36 RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
37 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
38
39 if BUILD_HWCLOCK
40 SUBDIRS += hwclock
41 endif
42
43 if BUILD_PARTX
44 SUBDIRS += partx
45 endif
46
47 if BUILD_MOUNT
48 SUBDIRS += mount
49 endif
50
51 if BUILD_FSCK
52 SUBDIRS += fsck
53 endif
54
55 if BUILD_SCHEDUTILS
56 SUBDIRS += schedutils
57 endif
58
59 AUTOMAKE_OPTIONS = gnu
60 ACLOCAL_AMFLAGS = -I m4
61
62 EXTRA_DIST = \
63 .version \
64 autogen.sh \
65 README.devel \
66 README.licensing \
67 DEPRECATED \
68 licenses \
69 example.files \
70 po/update-potfiles \
71 tools \
72 docs
73
74 # Arrange so that .tarball-version appears only in the distribution
75 # tarball, and never in a checked-out repository.
76 dist-hook:
77 echo $(VERSION) > $(distdir)/.tarball-version
78 # Set ChangeLog tag reference.
79 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
80
81 distclean-local:
82 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
83 rm -rf autom4te.cache
84
85
86 checkincludes:
87 @find * $(RCS_FIND_IGNORE) \
88 -name '*.[hcS]' -type f -print | sort -u \
89 | xargs $(top_srcdir)/tools/checkincludes.pl
90
91 checkconfig:
92 @find * $(RCS_FIND_IGNORE) \
93 -name '*.[hcS]' -type f -print | sort -u \
94 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
95
96
97 ENABLE_ALL = --enable-static-programs \
98 --enable-elvtune --enable-kill --enable-last \
99 --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \
100 --enable-login-utils --enable-write --enable-arch --enable-mount
101
102 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)
103
104
105 BUILT_SOURCES = .version
106 .version:
107 echo $(VERSION) > $@-t && mv $@-t $@
108