libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit e02e1f9c2af2adf993dd3c69ff7eedef0e1d42fe
parent d7981759073c4a9d2d0b67051584c8da62d762f6
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sat, 26 Apr 2025 18:06:05 +0200

Makefile: updated built-in script for checking for lost sources

Diffstat:
MMakefile.am | 8++++++++
Msrc/mhd2/Makefile.am | 14+++++++++-----
2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am @@ -426,3 +426,11 @@ maintainer-clean-po: -rm -rf $(srcdir_po)/autom4te.cache .PHONY: distclean-po maintainer-clean-po + +check-sources-missing: + @echo 'cd src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) $@' && \ + $(am__cd) src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) '$@' + +check-missing-sources: check-sources-missing + +.PHONY: check-sources-missing check-missing-sources diff --git a/src/mhd2/Makefile.am b/src/mhd2/Makefile.am @@ -298,14 +298,18 @@ check-sources-missing: @$(am__cd) "$(srcdir)" && \ echo $(ECHO_N) "Checking for missing sources" ; \ res="" ; \ + listed_srcs='$(DIST_SOURCES)' ; \ for src in *.[ch] ; do \ - if $(GREP) -q -e "\b$${src//./\.}\b" Makefile.am ; then : ; else \ - res="$$res $$src" ; \ - fi ; \ - echo $(ECHO_N) "." ; \ + case " $$listed_srcs " in \ + *" $$src "*) echo $(ECHO_N) "." ;; \ + *) res="$$res $$src" ;; \ + esac ; \ done ; \ echo " done" ; \ - test -z "$$res" || echo "The following sources are missing in Makefile.am:$${res}" + if test -n "$$res" ; then \ + echo "The following source files are missing in Makefile:" ; \ + echo " $${res}"; \ + fi check-missing-sources: check-sources-missing