]> git.ipfire.org Git - thirdparty/util-linux.git/blame - Makefile.am
tests: check for 'make check'
[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 =
8365ed42 44
f77a4d10
KZ
45INSTALL_EXEC_HOOKS =
46UNINSTALL_HOOKS =
47INSTALL_DATA_HOOKS =
ac73480a 48CLEAN_LOCALS =
f77a4d10 49
2cd5bc5a 50EXTRA_DIST = man/ru/ddate.1
3632ce21
KZ
51CLEANFILES =
52
fb55280a 53SUBDIRS = po
44e293d6 54
8b416ca0 55RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
44e293d6
KZ
56 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
57
48d7b13a
KZ
58ACLOCAL_AMFLAGS = -I m4
59
3632ce21 60EXTRA_DIST += \
f06b4328
SK
61 .version \
62 autogen.sh \
63 Documentation \
64 po/update-potfiles \
b53f8b8e
PU
65 README.licensing \
66 tools/git-version-gen
b8d1314d 67
8365ed42
KZ
68
69include include/Makemodule.am
e0ef609e 70include lib/Makemodule.am
3632ce21 71include libuuid/Makemodule.am
f77a4d10 72include libblkid/Makemodule.am
bc94024d
KZ
73include libmount/Makemodule.am
74
75include schedutils/Makemodule.am
22d2322e
KZ
76include text-utils/Makemodule.am
77include term-utils/Makemodule.am
ffeb2805 78include login-utils/Makemodule.am
d2feb47f 79include mount-deprecated/Makemodule.am
8772f8d7 80include sys-utils/Makemodule.am
37b88bfc 81include misc-utils/Makemodule.am
54dbc8cf 82include disk-utils/Makemodule.am
50ea6795 83include fdisks/Makemodule.am
8365ed42 84
ac73480a
KZ
85include tests/Makemodule.am
86
38c75b59
SK
87# Arrange so that .tarball-version appears only in the distribution
88# tarball, and never in a checked-out repository.
89dist-hook:
90 echo $(VERSION) > $(distdir)/.tarball-version
2b85ab88
SK
91# Set ChangeLog tag reference.
92 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
baf39af1
KZ
93
94distclean-local:
0b9f737e 95 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
baf39af1 96 rm -rf autom4te.cache
8eeb575c 97
44e293d6
KZ
98
99checkincludes:
043102bf 100 @find * $(RCS_FIND_IGNORE) \
44e293d6
KZ
101 -name '*.[hcS]' -type f -print | sort -u \
102 | xargs $(top_srcdir)/tools/checkincludes.pl
103
043102bf
KZ
104checkconfig:
105 @find * $(RCS_FIND_IGNORE) \
106 -name '*.[hcS]' -type f -print | sort -u \
107 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
108
ea6c96fb
SK
109checkmans:
110 @$(top_srcdir)/tools/checkmans.sh
111
d05a3e97
KZ
112checkxalloc:
113 @ $(top_srcdir)/tools/checkxalloc.sh
44e293d6 114
b5c6f486
KZ
115checkdecl:
116 @ $(top_srcdir)/tools/checkdecl.sh
117
0bf2dd3a 118ENABLE_ALL = --enable-static-programs --enable-most-builds
a2defd02 119DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group \
1b68c379
PU
120 --disable-silent-rules $(ENABLE_ALL) \
121 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
38c75b59
SK
122
123
124BUILT_SOURCES = .version
125.version:
126 echo $(VERSION) > $@-t && mv $@-t $@
127
47fb1079 128CHANGELOG_FILE = v$(VERSION)-ChangeLog
748c010f
KZ
129
130$(CHANGELOG_FILE):
131 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
47fb1079
KZ
132 echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
133 exit 1; \
134 fi
135 @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
136 @ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
137 @ echo >> $(CHANGELOG_FILE)
138 $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
fb55280a
KZ
139#
140#
141# smatch scan -- smatch and cgcc are expected in $PATH
142#
143checksmatch:
144 $(MAKE) CHECK="smatch --data=$(abs_top_srcdir)/tools/smatch-data" CC=cgcc
47fb1079 145
748c010f
KZ
146changelog: $(CHANGELOG_FILE)
147
f77a4d10
KZ
148install-exec-hook: $(INSTALL_EXEC_HOOKS)
149
150uninstall-hook: $(UNINSTALL_HOOKS)
151
152install-data-hook: $(INSTALL_DATA_HOOKS)
748c010f 153
ac73480a 154clean-local: $(CLEAN_LOCALS)