X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Smake;h=0e87e1e578b9144b65f6b8f82dfa69016f8fb3e2;hb=cb962ee9edc95f73507d35f0714ec8aa68c5295c;hp=00ae6ca7e42aa1fa30b3cdc272e3d1675b2ad1fc;hpb=e7f87adee2e124bb3e0e3dc992d44fbe9b26e4c2;p=pspp diff --git a/Smake b/Smake index 00ae6ca7e4..0e87e1e578 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,6 +10,19 @@ 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 + 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 @@ -17,12 +30,12 @@ install-sh Makefile.in: intl Makefile.am aclocal.m4 config.h.in ABOUT-NLS po/Makefile.in.in intl ABOUT-NLS: touch -f Makefile.am Makefile.am-stamp touch -f configure.ac configure.ac-stamp - cp -a configure.ac configure.ac-bak - cp -a Makefile.am Makefile.am-bak + cp -pR configure.ac configure.ac-bak + cp -pR Makefile.am Makefile.am-bak gettextize -f -c --no-changelog --intl - cp -a Makefile.am-bak Makefile.am + cp -pR Makefile.am-bak Makefile.am touch -f Makefile.am-stamp Makefile.am - cp -a configure.ac-bak configure.ac + cp -pR configure.ac-bak configure.ac touch -f configure.ac-stamp configure.ac $(RM) configure.ac-bak configure.ac-stamp $(RM) Makefile.am-bak Makefile.am-stamp @@ -45,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 \