]> err.no Git - util-linux/blob - Makefile.am
Merge remote branch 'origin/master'
[util-linux] / 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         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 LINUX
40 SUBDIRS += \
41         hwclock \
42         partx
43 endif
44
45 if BUILD_INIT
46 SUBDIRS += simpleinit
47 endif
48
49 if BUILD_MOUNT
50 SUBDIRS += mount
51 endif
52
53 if BUILD_FSCK
54 if BUILD_LIBBLKID
55 SUBDIRS += fsck
56 endif
57 endif
58
59 ACLOCAL_AMFLAGS = -I m4
60
61 EXTRA_DIST = \
62                 autogen.sh \
63                 README.devel \
64                 README.licensing \
65                 DEPRECATED \
66                 licenses \
67                 example.files \
68                 po/update-potfiles \
69                 tools \
70                 docs
71
72
73 distclean-local:
74         -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
75         rm -rf autom4te.cache
76
77
78 checkincludes:
79         @find * $(RCS_FIND_IGNORE) \
80                 -name '*.[hcS]' -type f -print | sort -u \
81                 | xargs $(top_srcdir)/tools/checkincludes.pl
82
83 checkconfig:
84         @find * $(RCS_FIND_IGNORE) \
85                 -name '*.[hcS]' -type f -print | sort -u \
86                 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
87
88
89 ENABLE_ALL = --enable-static-programs \
90  --enable-elvtune --enable-init --enable-kill --enable-last \
91  --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \
92  --enable-login-utils --enable-write --enable-arch --enable-mount
93
94 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)