3 -I$(top_srcdir)/include \
4 -DLOCALEDIR=\"$(localedir)\" \
5 -D_PATH_LOCALSTATEDIR=\"${localstatedir}\"
6 AM_CFLAGS = -fsigned-char $(WARN_CFLAGS)
9 # Add gettext stuff to the global LDADD for systems with separate libintl
10 # library. The LTLIBINTL is generated by AM_GNU_GETTEXT macro.
14 # Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals.
15 # Unlike with other dist primaries, the files are not distributed if the
16 # conditional is false.
17 # Work the bug around until it is fixed:
18 dist_noinst_DATA = $(dist_man_MANS)
20 # Paths to in-tree libraries (use ul_ prefix to avoid possible collisions) Note
21 # that blkid.h, libmount.h and libsmartcols.h are generated and stored in build
24 ul_libblkid_incdir = $(top_builddir)/libblkid/src
25 ul_libmount_incdir = $(top_builddir)/libmount/src
26 ul_libsmartcols_incdir = $(top_builddir)/libsmartcols/src
27 ul_libuuid_incdir = $(top_srcdir)/libuuid/src
28 ul_libfdisk_incdir = $(top_srcdir)/libfdisk/src
30 pkgconfigdir = $(usrlib_execdir)/pkgconfig
32 bashcompletiondir = @bashcompletiondir@
37 usrbin_exec_PROGRAMS =
38 usrsbin_exec_PROGRAMS =
42 usrlib_exec_LTLIBRARIES =
45 dist_usrbin_exec_SCRIPTS =
46 systemdsystemunit_DATA =
47 dist_bashcompletion_DATA =
64 RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
65 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
67 ACLOCAL_AMFLAGS = -I m4
78 include include/Makemodule.am
79 include lib/Makemodule.am
80 include libuuid/Makemodule.am
81 include libblkid/Makemodule.am
82 include libmount/Makemodule.am
83 include libsmartcols/Makemodule.am
84 include libfdisk/Makemodule.am
86 include schedutils/Makemodule.am
87 include text-utils/Makemodule.am
88 include term-utils/Makemodule.am
89 include login-utils/Makemodule.am
90 include sys-utils/Makemodule.am
91 include misc-utils/Makemodule.am
92 include disk-utils/Makemodule.am
94 include bash-completion/Makemodule.am
96 include tests/Makemodule.am
99 # Don't rely on configure.ac AC_CONFIG_FILES for install paths.
101 # The paths should be expanded at make time rather than configure:
102 # - to support 'make install prefix=/foo DESTDIR=/foo'
103 # - to recursively expands the paths (e.g. AC_CONFIG_FILES expands
104 # '@usrsbin_execdir@' to ${exec_prefix}/sbin')
107 -e 's|@prefix[@]|$(prefix)|g' \
108 -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
109 -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
110 -e 's|@datadir[@]|$(datadir)|g' \
111 -e 's|@sbindir[@]|$(sbindir)|g' \
112 -e 's|@bindir[@]|$(bindir)|g' \
113 -e 's|@includedir[@]|$(includedir)|g' \
114 -e 's|@localstatedir[@]|$(localstatedir)|g' \
115 -e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \
116 -e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
117 -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
118 -e 's|@VERSION[@]|$(VERSION)|g' \
119 -e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \
120 -e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \
121 -e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g'
123 CLEANFILES += $(PATHFILES)
124 EXTRA_DIST += $(PATHFILES:=.in)
126 $(PATHFILES): Makefile
128 $(AM_V_GEN) srcdir=''; \
129 test -f ./$@.in || srcdir=$(srcdir)/; \
130 $(edit_cmd) $${srcdir}$@.in >$@.tmp
133 # Arrange so that .tarball-version appears only in the distribution
134 # tarball, and never in a checked-out repository.
136 echo $(VERSION) > $(distdir)/.tarball-version
137 # Set ChangeLog tag reference.
138 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
141 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
142 rm -rf autom4te.cache
146 @find * $(RCS_FIND_IGNORE) \
147 -name '*.[hcS]' -type f -print | sort -u \
148 | xargs $(top_srcdir)/tools/checkincludes.pl
151 @find * $(RCS_FIND_IGNORE) \
152 -name '*.[hcS]' -type f -print | sort -u \
153 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
156 @$(top_srcdir)/tools/checkmans.sh
159 @ $(top_srcdir)/tools/checkxalloc.sh
162 @ $(top_srcdir)/tools/checkdecl.sh
164 ENABLE_ALL = --enable-static-programs --enable-most-builds
165 DISTCHECK_CONFIGURE_FLAGS = --disable-use-tty-group \
166 --disable-silent-rules $(ENABLE_ALL) \
167 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
168 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
171 BUILT_SOURCES = .version
173 echo $(VERSION) > $@-t && mv $@-t $@
175 CHANGELOG_FILE = v$(VERSION)-ChangeLog
178 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
179 echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
182 @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
183 @ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
184 @ echo >> $(CHANGELOG_FILE)
185 $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
188 # smatch scan -- smatch and cgcc are expected in $PATH
191 $(MAKE) CHECK="smatch --data=$(abs_top_srcdir)/tools/smatch-data" CC=cgcc
193 changelog: $(CHANGELOG_FILE)
195 install-exec-hook: $(INSTALL_EXEC_HOOKS)
197 uninstall-hook: $(UNINSTALL_HOOKS)
199 install-data-hook: $(INSTALL_DATA_HOOKS)
201 clean-local: $(CLEAN_LOCALS)
203 check-local: $(CHECK_LOCALS)