summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: a0e1d0fc5bed8e24ee2b3a716240cbb32be599ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
include $(top_srcdir)/config/include-Makefile.am

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

MAN_DIRS = man/ru

SUBDIRS = \
	gnulib \
	include \
	getopt \
	lib \
	$(SHLIBS_DIRS) \
	$(MAN_DIRS) \
	login-utils \
	misc-utils \
	po \
	schedutils \
	sys-utils \
	fdisk \
	disk-utils \
	text-utils

if LINUX
SUBDIRS += tests
endif

RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o \
		-name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o

if LINUX
SUBDIRS += \
	hwclock \
	partx
endif

if BUILD_INIT
SUBDIRS += simpleinit
endif

if BUILD_MOUNT
SUBDIRS += mount
endif

if BUILD_FSCK
if BUILD_LIBBLKID
SUBDIRS += fsck
endif
endif

ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4

EXTRA_DIST = \
		autogen.sh \
		README.devel \
		README.licensing \
		DEPRECATED \
		licenses \
		example.files \
		po/update-potfiles \
		tools \
		docs


distclean-local:
	-find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
	rm -rf autom4te.cache


checkincludes:
	@find * $(RCS_FIND_IGNORE) \
		-name '*.[hcS]' -type f -print | sort -u \
		| xargs $(top_srcdir)/tools/checkincludes.pl

checkconfig:
	@find * $(RCS_FIND_IGNORE) \
		-name '*.[hcS]' -type f -print | sort -u \
		| xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)


ENABLE_ALL = --enable-static-programs \
 --enable-elvtune --enable-init --enable-kill --enable-last \
 --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \
 --enable-login-utils --enable-write --enable-arch --enable-mount

DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)