From 2ce751b4b663183ff63d65be3872bf74e2131938 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 22 Aug 2024 15:29:59 +0200 Subject: [PATCH] make dist fixes --- Makefile.am | 4 ++-- src/mhd2/Makefile.am | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index c36d601b..01dd41e3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -192,8 +192,8 @@ dist-po: po/Makefile $(PO_MAIN_FILES) $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) distdir="$$rel_distsubdir" distdir $(srcdir_po)/POTFILES.in: $(top_srcdir)/src/microhttpd/Makefile.am - @echo "cd $(top_builddir)/src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in" && \ - $(am__cd) '$(top_builddir)/src/microhttpd' && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in + @echo "cd $(top_builddir)/src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in" && \ + $(am__cd) '$(top_builddir)/src/mhd2' && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in AUTOPOINT = autopoint AUTOPOINT_FLAGS = diff --git a/src/mhd2/Makefile.am b/src/mhd2/Makefile.am index 339ed14f..1903ba19 100644 --- a/src/mhd2/Makefile.am +++ b/src/mhd2/Makefile.am @@ -176,3 +176,12 @@ $(CONFIG_HEADER): $(builddir)/../incl_priv/mhd_config.h.in $(top_srcdir)/configu $(builddir)/../incl_priv/mhd_config.h.in: $(top_srcdir)/configure.ac @echo "cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh" && \ $(am__cd) $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +update-po-POTFILES.in: $(top_srcdir)/po/POTFILES.in + +$(top_srcdir)/po/POTFILES.in: $(srcdir)/Makefile.am + @echo "Creating $@" + @echo src/include/microhttpd2.h > "$@" && \ + for src in $(am__libmicrohttpd2_la_SOURCES_DIST) ; do \ + echo "$(subdir)/$$src" >> "$@" ; \ + done