-I$(top_srcdir)/include \
-DLOCALEDIR=\"$(localedir)\" \
-D_PATH_RUNSTATEDIR=\"${runstatedir}\" \
+ -D_PATH_LOCALSTATEDIR=\"${localstatedir}\" \
-D_PATH_SYSCONFSTATICDIR=\"${sysconfstaticdir}\"
if USE_VENDORDIR
endif
endif
+if WITH_COVERAGE
+AM_CPPFLAGS += \
+ -include $(top_srcdir)/include/coverage.h
+endif
+
AM_CFLAGS = -fsigned-char $(WARN_CFLAGS)
AM_CXXFLAGS = $(AM_CFLAGS)
-AM_LDFLAGS = $(ASAN_LDFLAGS) $(UBSAN_LDFLAGS) $(FUZZING_ENGINE_LDFLAGS)
+AM_LDFLAGS = $(ASAN_LDFLAGS) $(UBSAN_LDFLAGS) $(FUZZING_ENGINE_LDFLAGS) $(COVERAGE_LDFLAGS)
# Add gettext stuff to the global LDADD for systems with separate libintl
# library. The LTLIBINTL is generated by AM_GNU_GETTEXT macro.
ul_libmount_incdir = $(top_builddir)/libmount/src
ul_libsmartcols_incdir = $(top_builddir)/libsmartcols/src
ul_libfdisk_incdir = $(top_builddir)/libfdisk/src
-
+ul_liblastlog2_incdir = $(top_srcdir)/liblastlog2/src
ul_libuuid_incdir = $(top_srcdir)/libuuid/src
bashcompletiondir = @bashcompletiondir@
dist_noinst_HEADERS =
+dist_noinst_DATA =
noinst_PROGRAMS =
EXTRA_LTLIBRARIES =
usrbin_exec_PROGRAMS =
sbin_PROGRAMS =
dist_usrbin_exec_SCRIPTS =
systemdsystemunit_DATA =
+tmpfiles_DATA =
dist_bashcompletion_DATA =
check_PROGRAMS =
dist_check_SCRIPTS =
+BUILT_SOURCES =
+
PATHFILES =
+ADOCFILES_COMMON =
+MANPAGES =
+MANLINKS =
INSTALL_EXEC_HOOKS =
UNINSTALL_HOOKS =
INSTALL_DATA_HOOKS =
CLEAN_LOCALS =
CHECK_LOCALS =
-MANPAGES =
-MANLINKS =
-MANPAGES_EXTRA =
EXTRA_DIST =
CLEANFILES =
SUBDIRS = po
+if ENABLE_ASCIIDOC
+if ENABLE_POMAN
+SUBDIRS += po-man
+endif
+endif
+
RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
-name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
include include/Makemodule.am
include lib/Makemodule.am
include libuuid/Makemodule.am
+include liblastlog2/Makemodule.am
include libblkid/Makemodule.am
include libmount/Makemodule.am
include libsmartcols/Makemodule.am
include misc-utils/Makemodule.am
include disk-utils/Makemodule.am
+include pam_lastlog2/Makemodule.am
include bash-completion/Makemodule.am
include man-common/Makemodule.am
+include Documentation/Makemodule.am
include tests/Makemodule.am
+# Meson files
+EXTRA_DIST += \
+ meson.build \
+ meson_options.txt \
+ tools/meson-make-manpage-stub.sh \
+ tools/meson-make-symlink.sh \
+ \
+ include/meson.build \
+ libblkid/meson.build \
+ libmount/meson.build \
+ libmount/python/meson.build \
+ misc-utils/meson.build \
+ libsmartcols/meson.build \
+ text-utils/meson.build \
+ po/meson.build \
+ lib/meson.build \
+ libuuid/meson.build \
+ liblastlog2/meson.build \
+ sys-utils/meson.build \
+ libfdisk/meson.build \
+ term-utils/meson.build \
+ disk-utils/meson.build \
+ login-utils/meson.build
# pylibmountexec module must be installed after usrlib_exec libraries,
# otherwise the libtool relink step will fail to find libmount.la and
-e 's|@docdir[@]|$(docdir)|g' \
-e 's|@includedir[@]|$(includedir)|g' \
-e 's|@runstatedir[@]|$(runstatedir)|g' \
+ -e 's|@localstatedir[@]|$(localstatedir)|g' \
-e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \
-e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
-e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \
-e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \
+ -e 's|@LIBLASTLOG2_VERSION[@]|$(LIBLASTLOG2_VERSION)|g' \
-e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \
-e 's|@LIBMOUNT_MAJOR_VERSION[@]|$(LIBMOUNT_MAJOR_VERSION)|g' \
-e 's|@LIBMOUNT_MINOR_VERSION[@]|$(LIBMOUNT_MINOR_VERSION)|g' \
@ mv $@.tmp $@
-CLEANFILES += $(MANPAGES) $(MANLINKS)
-EXTRA_DIST += $(MANPAGES:=.adoc) $(MANPAGES_EXTRA)
-
if ENABLE_ASCIIDOC
+EXTRA_DIST += $(ADOCFILES_COMMON) $(MANPAGES) $(MANLINKS)
man_MANS += $(MANPAGES) $(MANLINKS)
-$(MANPAGES): $(MANPAGES_EXTRA) Makefile
+$(MANPAGES): $(ADOCFILES_COMMON)
asciidoc_man_cmd = $(ASCIIDOCTOR) \
-b manpage \
+ -a 'release-version=$(VERSION)' \
+ -a 'package-docdir=$(docdir)' \
-a 'VERSION=$(VERSION)' \
- -a 'ADJTIME_PATH=$(ADJTIME_PATH)'
+ -a 'ADJTIME_PATH=$(ADJTIME_PATH)' \
+ --load-path '$(abs_srcdir)/tools' \
+ --require asciidoctor-includetracker
+
+if HAVE_ASCIIDOCTOR_FAILURE_LEVEL
+asciidoc_man_cmd += --failure-level ERROR
+endif
SUFFIXES = .1.adoc .3.adoc .5.adoc .8.adoc .1 .3 .5 .8
.1.adoc.1 .3.adoc.3 .5.adoc.5 .8.adoc.8:
$(asciidoc_man_cmd) --base-dir=$(abs_srcdir) \
--destination-dir $(abs_builddir)/$$(dirname $@) $<
+-include \
+ $(abs_builddir)/**.1.deps \
+ $(abs_builddir)/**.3.deps \
+ $(abs_builddir)/**.5.deps \
+ $(abs_builddir)/**.8.deps
+
$(MANLINKS): $(MANPAGES)
gen-man: $(man_MANS)
+# Standard "make" follows BUILD_* macros from ./configure, and in this case, it
+# ignores man pages for disabled tools, but for distribution tarball, we need
+# to generate all man-pages (to avoid dependence on asciidoc). [kzak Jan-2022]
+gen-man-dist:
+ @list=`find -name *.adoc -not -path "*/man-common/*" -not -path "*/po-man/*" | sed -e 's/\.adoc//g'`; \
+ missing=`for p in $$list; do test -f $$p || echo $$p; done`; \
+ if test -n "$$missing"; then \
+ $(MAKE) $(AM_MAKEFLAGS) $$missing; \
+ fi;
+
+
+# !ENABLE_ASCIIDOC
else
+
+if HAVE_MANPAGES
+EXTRA_DIST += $(ADOCFILES_COMMON) $(MANPAGES) $(MANLINKS)
+man_MANS += $(MANPAGES) $(MANLINKS)
+endif
+
gen-man:
+gen-man-dist:
endif
# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
-dist-hook:
+dist-hook: gen-man-dist
echo $(VERSION) > $(distdir)/.tarball-version
# Set ChangeLog tag reference.
sed -i "s!log!log?h=v$(VERSION)!" $(distdir)/ChangeLog
--enable-gtk-doc \
--with-python \
--with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
- --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
-
+ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
+ --with-tmpfilesdir=$$dc_install_base/$(tmpfilesdir)
-BUILT_SOURCES = .version
+BUILT_SOURCES += .version
.version:
echo $(VERSION) > $@-t && mv $@-t $@