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