From 6ad392174e035d6e0823fd7894a0488acf274b97 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 22 Feb 2004 08:08:40 +0000 Subject: [PATCH] Improved method of generating POTFILES.in --- Smake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Smake b/Smake index e21e51c7..c89247cb 100644 --- a/Smake +++ b/Smake @@ -10,10 +10,18 @@ config.h.in: configure.ac aclocal.m4: aclocal -I m4 +# We want all src/*.c files which do not have corresponding src/*.q + +src_q_files=$(wildcard src/*.q) +src_c_files=$(wildcard src/*.c) +src_cq_files=$(patsubst %.q, %.c, $(src_q_files)) +src_files=$(filter-out $(src_cq_files), $(src_c_files)) $(src_q_files) + + .PHONY: po/POTFILES.in po/POTFILES.in: @$(RM) po/potfile-temp - ls -1 src/*.[cq] > po/potfile-temp + for f in $(src_files) ; do echo $$f >> po/potfile-temp ; done @if ( ! test -e $@ ) || ( ! diff -q po/potfile-temp $@ ) ; then mv po/potfile-temp $@ ; else $(RM) po/potfile-temp ; fi install-sh Makefile.in: intl Makefile.am aclocal.m4 config.h.in ABOUT-NLS -- 2.30.2