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