]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - Makefile.am
hwclock: reuse error message
[thirdparty/util-linux.git] / Makefile.am
index a847a550205699f62706497d146392841dd87952..2df89ff6dfeee3bd9a7f48989a983fa018a6e241 100644 (file)
@@ -17,9 +17,14 @@ AM_CPPFLAGS += \
 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.
@@ -58,6 +63,8 @@ dist_bashcompletion_DATA =
 check_PROGRAMS =
 dist_check_SCRIPTS =
 
+BUILT_SOURCES =
+
 PATHFILES =
 ADOCFILES_COMMON =
 MANPAGES =
@@ -233,6 +240,10 @@ asciidoc_man_cmd = $(ASCIIDOCTOR) \
        --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:
        $(AM_V_GEN) test -f ./$@ || \
@@ -338,7 +349,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
        --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
 
 
-BUILT_SOURCES = .version
+BUILT_SOURCES += .version
 .version:
        echo $(VERSION) > $@-t && mv $@-t $@