]> git.ipfire.org Git - thirdparty/util-linux.git/blame - Makefile.am
libblkid: remove optimization from verify( funrtion
[thirdparty/util-linux.git] / Makefile.am
CommitLineData
fb55280a
KZ
1AM_CPPFLAGS = \
2 -include config.h \
3 -I$(top_srcdir)/include \
07a16b9d
SK
4 -DLOCALEDIR=\"$(localedir)\" \
5 -D_PATH_LOCALSTATEDIR=\"${localstatedir}\"
fb55280a
KZ
6AM_CFLAGS = -fsigned-char $(WARN_CFLAGS)
7AM_LDFLAGS =
8
7bce71a3
KZ
9# Add gettext stuff to the global LDADD for systems with separate libintl
10# library. The LTLIBINTL is generated by AM_GNU_GETTEXT macro.
11#
12LDADD = $(LTLIBINTL)
13
fb55280a
KZ
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:
18dist_noinst_DATA = $(dist_man_MANS)
19
20# Paths to in-tree libraries (use ul_ prefix to avoid possible collisions)
21# Note that blkid.h and libmount.h are generated and stored in build dirs.
22#
23ul_libblkid_incdir = $(top_builddir)/libblkid/src
24ul_libmount_incdir = $(top_builddir)/libmount/src
25ul_libuuid_incdir = $(top_srcdir)/libuuid/src
48d7b13a 26
3632ce21
KZ
27pkgconfigdir = $(usrlib_execdir)/pkgconfig
28
8365ed42 29dist_noinst_HEADERS =
e0ef609e 30noinst_PROGRAMS =
f77a4d10 31noinst_LTLIBRARIES =
5ed5df5d 32usrbin_exec_PROGRAMS =
ffeb2805 33usrsbin_exec_PROGRAMS =
5ed5df5d 34dist_man_MANS =
3632ce21
KZ
35man_MANS =
36pkgconfig_DATA =
37usrlib_exec_LTLIBRARIES =
22d2322e
KZ
38bin_PROGRAMS =
39sbin_PROGRAMS =
40dist_usrbin_exec_SCRIPTS =
37b88bfc 41systemdsystemunit_DATA =
fb55280a 42ruman1_DATA =
922e6775 43check_PROGRAMS =
fc22bff0 44TESTS =
8365ed42 45
d4baf92e
KZ
46PATHFILES =
47
f77a4d10
KZ
48INSTALL_EXEC_HOOKS =
49UNINSTALL_HOOKS =
50INSTALL_DATA_HOOKS =
ac73480a 51CLEAN_LOCALS =
1b03e2cd 52CHECK_LOCALS =
f77a4d10 53
2cd5bc5a 54EXTRA_DIST = man/ru/ddate.1
3632ce21
KZ
55CLEANFILES =
56
fb55280a 57SUBDIRS = po
44e293d6 58
8b416ca0 59RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
44e293d6
KZ
60 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
61
48d7b13a
KZ
62ACLOCAL_AMFLAGS = -I m4
63
3632ce21 64EXTRA_DIST += \
f06b4328
SK
65 .version \
66 autogen.sh \
67 Documentation \
68 po/update-potfiles \
b53f8b8e
PU
69 README.licensing \
70 tools/git-version-gen
b8d1314d 71
8365ed42
KZ
72
73include include/Makemodule.am
e0ef609e 74include lib/Makemodule.am
3632ce21 75include libuuid/Makemodule.am
f77a4d10 76include libblkid/Makemodule.am
bc94024d
KZ
77include libmount/Makemodule.am
78
79include schedutils/Makemodule.am
22d2322e
KZ
80include text-utils/Makemodule.am
81include term-utils/Makemodule.am
ffeb2805 82include login-utils/Makemodule.am
d2feb47f 83include mount-deprecated/Makemodule.am
8772f8d7 84include sys-utils/Makemodule.am
37b88bfc 85include misc-utils/Makemodule.am
54dbc8cf 86include disk-utils/Makemodule.am
50ea6795 87include fdisks/Makemodule.am
8365ed42 88
ac73480a
KZ
89include tests/Makemodule.am
90
d4baf92e
KZ
91#
92# Don't rely on configure.ac AC_CONFIG_FILES for install paths.
93#
94# The paths should be expanded at make time rather than configure:
95# - to support 'make install prefix=/foo DESTDIR=/foo'
96# - to recursively expands the paths (e.g. AC_CONFIG_FILES expands
97# '@usrsbin_execdir@' to ${exec_prefix}/sbin')
98#
99edit_cmd = sed \
100 -e 's|@prefix[@]|$(prefix)|g' \
101 -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
102 -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
103 -e 's|@datadir[@]|$(datadir)|g' \
104 -e 's|@sbindir[@]|$(sbindir)|g' \
105 -e 's|@bindir[@]|$(bindir)|g' \
106 -e 's|@includedir[@]|$(includedir)|g' \
107 -e 's|@localstatedir[@]|$(localstatedir)|g' \
108 -e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \
109 -e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
110 -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
111 -e 's|@VERSION[@]|$(VERSION)|g' \
112 -e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \
113 -e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \
114 -e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g'
115
116CLEANFILES += $(PATHFILES)
117EXTRA_DIST += $(PATHFILES:=.in)
118
119$(PATHFILES): Makefile
120 @ rm -f $@ $@.tmp
121 $(AM_V_GEN) srcdir=''; \
122 test -f ./$@.in || srcdir=$(srcdir)/; \
123 $(edit_cmd) $${srcdir}$@.in >$@.tmp
124 @ mv $@.tmp $@
125
38c75b59
SK
126# Arrange so that .tarball-version appears only in the distribution
127# tarball, and never in a checked-out repository.
128dist-hook:
129 echo $(VERSION) > $(distdir)/.tarball-version
2b85ab88
SK
130# Set ChangeLog tag reference.
131 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
baf39af1
KZ
132
133distclean-local:
0b9f737e 134 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
baf39af1 135 rm -rf autom4te.cache
8eeb575c 136
44e293d6
KZ
137
138checkincludes:
043102bf 139 @find * $(RCS_FIND_IGNORE) \
44e293d6
KZ
140 -name '*.[hcS]' -type f -print | sort -u \
141 | xargs $(top_srcdir)/tools/checkincludes.pl
142
043102bf
KZ
143checkconfig:
144 @find * $(RCS_FIND_IGNORE) \
145 -name '*.[hcS]' -type f -print | sort -u \
146 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
147
ea6c96fb
SK
148checkmans:
149 @$(top_srcdir)/tools/checkmans.sh
150
d05a3e97
KZ
151checkxalloc:
152 @ $(top_srcdir)/tools/checkxalloc.sh
44e293d6 153
b5c6f486
KZ
154checkdecl:
155 @ $(top_srcdir)/tools/checkdecl.sh
156
0bf2dd3a 157ENABLE_ALL = --enable-static-programs --enable-most-builds
5a5c5bf3 158DISTCHECK_CONFIGURE_FLAGS = --disable-use-tty-group \
1b68c379
PU
159 --disable-silent-rules $(ENABLE_ALL) \
160 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
38c75b59
SK
161
162
163BUILT_SOURCES = .version
164.version:
165 echo $(VERSION) > $@-t && mv $@-t $@
166
47fb1079 167CHANGELOG_FILE = v$(VERSION)-ChangeLog
748c010f
KZ
168
169$(CHANGELOG_FILE):
170 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
47fb1079
KZ
171 echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
172 exit 1; \
173 fi
174 @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
175 @ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
176 @ echo >> $(CHANGELOG_FILE)
177 $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
fb55280a
KZ
178#
179#
180# smatch scan -- smatch and cgcc are expected in $PATH
181#
182checksmatch:
183 $(MAKE) CHECK="smatch --data=$(abs_top_srcdir)/tools/smatch-data" CC=cgcc
47fb1079 184
748c010f
KZ
185changelog: $(CHANGELOG_FILE)
186
f77a4d10
KZ
187install-exec-hook: $(INSTALL_EXEC_HOOKS)
188
189uninstall-hook: $(UNINSTALL_HOOKS)
190
191install-data-hook: $(INSTALL_DATA_HOOKS)
748c010f 192
ac73480a 193clean-local: $(CLEAN_LOCALS)
1b03e2cd
KZ
194
195check-local: $(CHECK_LOCALS)