]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Makefile.am
hwclock: build on non-Linux
[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 += shlibs/uuid
7 endif
8
9 if BUILD_LIBBLKID
10 SHLIBS_DIRS += shlibs/blkid
11 endif
12
13 if BUILD_LIBMOUNT
14 SHLIBS_DIRS += shlibs/mount
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 schedutils \
31 sys-utils \
32 term-utils \
33 text-utils \
34 tests
35
36
37 RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
38 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
39
40 if BUILD_HWCLOCK
41 SUBDIRS += hwclock
42 endif
43
44 if LINUX
45 SUBDIRS += partx
46 endif
47
48 if BUILD_INIT
49 SUBDIRS += simpleinit
50 endif
51
52 if BUILD_MOUNT
53 SUBDIRS += mount
54 endif
55
56 if BUILD_FSCK
57 if BUILD_LIBBLKID
58 SUBDIRS += fsck
59 endif
60 endif
61
62 ACLOCAL_AMFLAGS = -I m4
63
64 EXTRA_DIST = \
65 autogen.sh \
66 README.devel \
67 README.licensing \
68 DEPRECATED \
69 licenses \
70 example.files \
71 po/update-potfiles \
72 tools \
73 docs
74
75
76 distclean-local:
77 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
78 rm -rf autom4te.cache
79
80
81 checkincludes:
82 @find * $(RCS_FIND_IGNORE) \
83 -name '*.[hcS]' -type f -print | sort -u \
84 | xargs $(top_srcdir)/tools/checkincludes.pl
85
86 checkconfig:
87 @find * $(RCS_FIND_IGNORE) \
88 -name '*.[hcS]' -type f -print | sort -u \
89 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
90
91
92 ENABLE_ALL = --enable-static-programs \
93 --enable-elvtune --enable-init --enable-kill --enable-last \
94 --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \
95 --enable-login-utils --enable-write --enable-arch --enable-mount
96
97 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)