Makefiles: automatically build POTFILES.in

Added very simple automated solution to rebuild POTFILES.in when needed
and use only library files for it.
This commit is contained in:
Evgeny Grin (Karlson2k)
2022-06-10 10:53:27 +03:00
parent eecdde2511
commit 7ca83d316e
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -126,6 +126,10 @@ dist-po: po/Makefile
echo "cd po && $(MAKE) $(AM_MAKEFLAGS) distdir='$$rel_distsubdir' distdir" && \
$(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) distdir="$$rel_distsubdir" distdir
$(top_srcdir)/po/POTFILES.in: $(top_srcdir)/src/microhttpd/Makefile.am
@echo "cd src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in" && \
$(am__cd) src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in
EXTRA_DIST += $(am__po_configure_deps) $(top_srcdir)/po/po-configure.ac.in $(top_srcdir)/po-configure
DISTCLEANFILES += config.main.log po-config.log
+10
View File
@@ -270,6 +270,15 @@ endif
TESTS = $(check_PROGRAMS)
update-po-POTFILES.in: $(top_srcdir)/po/POTFILES.in
$(top_srcdir)/po/POTFILES.in: $(srcdir)/Makefile.am
@echo "Creating $@"
@echo src/include/microhttpd.h > $@ && \
for src in $(am__libmicrohttpd_la_SOURCES_DIST) ; do \
echo "$(subdir)/$$src" >> $@ ; \
done
test_start_stop_SOURCES = \
test_start_stop.c
test_start_stop_LDADD = \
@@ -520,3 +529,4 @@ test_set_panic_SOURCES = \
test_set_panic_LDADD = \
libmicrohttpd.la
.PHONY: update-po-POTFILES.in