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