]> git.ipfire.org Git - thirdparty/util-linux.git/blame - Makefile.am
mount: fix recursively propagation mounting
[thirdparty/util-linux.git] / Makefile.am
CommitLineData
48d7b13a
KZ
1include $(top_srcdir)/config/include-Makefile.am
2
ebc83db1
DEFP
3SHLIBS_DIRS =
4
5if BUILD_LIBUUID
83d20837 6SHLIBS_DIRS += libuuid
ebc83db1
DEFP
7endif
8
9if BUILD_LIBBLKID
8fb4efae 10SHLIBS_DIRS += libblkid
ebc83db1
DEFP
11endif
12
13if BUILD_LIBMOUNT
2aefc0a8 14SHLIBS_DIRS += libmount
ebc83db1
DEFP
15endif
16
f331598a
KZ
17MAN_DIRS = man/ru
18
2984313a 19SUBDIRS = \
8eeb575c 20 include \
48d7b13a
KZ
21 disk-utils \
22 fdisk \
23 getopt \
d00ed891 24 lib \
ebc83db1 25 $(SHLIBS_DIRS) \
f331598a 26 $(MAN_DIRS) \
48d7b13a
KZ
27 login-utils \
28 misc-utils \
48d7b13a 29 po \
48d7b13a 30 sys-utils \
c0f20acb 31 term-utils \
e83446da
KZ
32 text-utils \
33 tests
48d7b13a 34
44e293d6 35
8b416ca0 36RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
44e293d6
KZ
37 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
38
465e9973
ST
39if BUILD_HWCLOCK
40SUBDIRS += hwclock
41endif
42
b98ae9c2 43if BUILD_PARTX
465e9973 44SUBDIRS += partx
3bbc9320
ST
45endif
46
7177d32e
ABL
47if BUILD_MOUNT
48SUBDIRS += mount
49endif
50
607c2a72
KZ
51if BUILD_FSCK
52SUBDIRS += fsck
53endif
54
58a111bd
KZ
55if BUILD_SCHEDUTILS
56SUBDIRS += schedutils
57endif
58
2b85ab88 59AUTOMAKE_OPTIONS = gnu
48d7b13a
KZ
60ACLOCAL_AMFLAGS = -I m4
61
1b38f7cc 62EXTRA_DIST = \
38c75b59 63 .version \
562218e6 64 autogen.sh \
dcb219b3 65 README.licensing \
71be1ee4 66 po/update-potfiles \
4cc5a3e2 67 tools \
f98d4f76 68 Documentation
b8d1314d 69
38c75b59
SK
70# Arrange so that .tarball-version appears only in the distribution
71# tarball, and never in a checked-out repository.
72dist-hook:
73 echo $(VERSION) > $(distdir)/.tarball-version
2b85ab88
SK
74# Set ChangeLog tag reference.
75 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
baf39af1
KZ
76
77distclean-local:
0b9f737e 78 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
baf39af1 79 rm -rf autom4te.cache
8eeb575c 80
44e293d6
KZ
81
82checkincludes:
043102bf 83 @find * $(RCS_FIND_IGNORE) \
44e293d6
KZ
84 -name '*.[hcS]' -type f -print | sort -u \
85 | xargs $(top_srcdir)/tools/checkincludes.pl
86
043102bf
KZ
87checkconfig:
88 @find * $(RCS_FIND_IGNORE) \
89 -name '*.[hcS]' -type f -print | sort -u \
90 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
91
d05a3e97
KZ
92checkxalloc:
93 @ $(top_srcdir)/tools/checkxalloc.sh
44e293d6 94
0bf2dd3a 95ENABLE_ALL = --enable-static-programs --enable-most-builds
1e018c15 96DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)
38c75b59
SK
97
98
99BUILT_SOURCES = .version
100.version:
101 echo $(VERSION) > $@-t && mv $@-t $@
102
47fb1079 103CHANGELOG_FILE = v$(VERSION)-ChangeLog
748c010f
KZ
104
105$(CHANGELOG_FILE):
106 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
47fb1079
KZ
107 echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
108 exit 1; \
109 fi
110 @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
111 @ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
112 @ echo >> $(CHANGELOG_FILE)
113 $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
114
748c010f
KZ
115changelog: $(CHANGELOG_FILE)
116
117