From: John Darrington Date: Sun, 22 Feb 2004 08:08:40 +0000 (+0000) Subject: Improved method of generating POTFILES.in X-Git-Tag: v0.4.0~339 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad392174e035d6e0823fd7894a0488acf274b97;p=pspp-builds.git Improved method of generating POTFILES.in --- 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