X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Smake;h=c89247cb2f3833cb123e28ad6a08028985699727;hb=f9ce8d75ae81553d9aec05351cb2d12d0df33e5e;hp=d474bc07906de445cad41ad51d52c11306b30130;hpb=55dee937e22a49d01794ef772076d9f9d84199e9;p=pspp diff --git a/Smake b/Smake index d474bc0790..c89247cb2f 100644 --- a/Smake +++ b/Smake @@ -1,4 +1,4 @@ -Makefile po/Makefile.in: Makefile.in configure install-sh config.h.in po/Makefile.in.in +Makefile po/Makefile.in: Makefile.in configure install-sh config.h.in po/Makefile.in.in po/POTFILES.in ./configure configure: configure.ac aclocal.m4 @@ -10,8 +10,21 @@ config.h.in: configure.ac aclocal.m4: aclocal -I m4 +# We want all src/*.c files which do not have corresponding src/*.q -install-sh Makefile.in: intl Makefile.am aclocal.m4 config.h.in +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 + 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 automake --add-missing po/Makefile.in.in intl ABOUT-NLS: @@ -32,6 +45,7 @@ po/Makefile.in.in intl ABOUT-NLS: .PHONY: clean clean: $(RM) config.sub config.guess + $(RM) ABOUT-NLS $(RM) -r autom4te.cache $(RM) aclocal.m4 $(RM) missing mkinstalldirs @@ -44,6 +58,7 @@ clean: po/Makefile.in \ po/Makefile.in.in \ po/POTFILES \ + po/POTFILES.in \ po/Rules-quot \ po/boldquot.sed \ po/cat-id-tbl.c \