mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user