projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
099ddc0
)
Improved method of generating POTFILES.in
author
John Darrington
<john@darrington.wattle.id.au>
Sun, 22 Feb 2004 08:08:40 +0000
(08:08 +0000)
committer
John Darrington
<john@darrington.wattle.id.au>
Sun, 22 Feb 2004 08:08:40 +0000
(08:08 +0000)
Smake
patch
|
blob
|
history
diff --git
a/Smake
b/Smake
index e21e51c7279e0ef4eae44ef64d4c7052d6e8c154..c89247cb2f3833cb123e28ad6a08028985699727 100644
(file)
--- a/
Smake
+++ b/
Smake
@@
-10,10
+10,18
@@
config.h.in: configure.ac
aclocal.m4:
aclocal -I m4
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
.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
@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