]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Makefile.am
mount: fix recursively propagation mounting
[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.licensing \
66 po/update-potfiles \
67 tools \
68 Documentation
69
70 # Arrange so that .tarball-version appears only in the distribution
71 # tarball, and never in a checked-out repository.
72 dist-hook:
73 echo $(VERSION) > $(distdir)/.tarball-version
74 # Set ChangeLog tag reference.
75 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
76
77 distclean-local:
78 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
79 rm -rf autom4te.cache
80
81
82 checkincludes:
83 @find * $(RCS_FIND_IGNORE) \
84 -name '*.[hcS]' -type f -print | sort -u \
85 | xargs $(top_srcdir)/tools/checkincludes.pl
86
87 checkconfig:
88 @find * $(RCS_FIND_IGNORE) \
89 -name '*.[hcS]' -type f -print | sort -u \
90 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
91
92 checkxalloc:
93 @ $(top_srcdir)/tools/checkxalloc.sh
94
95 ENABLE_ALL = --enable-static-programs --enable-most-builds
96 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)
97
98
99 BUILT_SOURCES = .version
100 .version:
101 echo $(VERSION) > $@-t && mv $@-t $@
102
103 CHANGELOG_FILE = v$(VERSION)-ChangeLog
104
105 $(CHANGELOG_FILE):
106 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
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
115 changelog: $(CHANGELOG_FILE)
116
117