]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Simplify the file lists.
authorBruno Haible <bruno@clisp.org>
Fri, 28 Sep 2001 20:12:23 +0000 (20:12 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 28 Sep 2001 20:12:23 +0000 (20:12 +0000)
src/ChangeLog
src/Makefile.am

index 8b5aee2b73b2894ebe23b1631041f735f97ef8a0..c9f9a2ce2383f8915b726483e536a8fd5ccb4f4d 100644 (file)
@@ -1,3 +1,11 @@
+2001-09-11  Bruno Haible  <haible@clisp.cons.org>
+
+       * Makefile.am (COMMON_SOURCES, FORMAT_SOURCES): New variables.
+       (msgcmp_SOURCES, msgfmt_SOURCES, msgmerge_SOURCES, msgunfmt_SOURCES,
+       xgettext_SOURCES, msgattrib_SOURCES, msgcat_SOURCES, msgcomm_SOURCES,
+       msgconv_SOURCES, msgen_SOURCES, msgexec_SOURCES, msggrep_SOURCES,
+       msguniq_SOURCES): Simplify.
+
 2001-09-09  Bruno Haible  <haible@clisp.cons.org>
 
        * file-list.c: Include system.h.
index 1a0fad559f5f558fabea72d959d9874c67cce0ae..6736ef768c22ef563b0be6773c5ad3c9d256fb33 100644 (file)
@@ -45,49 +45,37 @@ JAR = @JAR@
 JAVACOMP = $(SHELL) ../lib/javacomp.sh
 
 
+# All programs deal with message lists.
+# All programs must read PO files. (msgunfmt also, for read-java.c.)
+# message.c -> str-list.c.
+# (po.c <--> po-hash-gen.y <--> po-gram-gen.y <--> po-lex.c) -> str-list.c.
+# (po.c <--> po-hash-gen.y <--> po-gram-gen.y <--> po-lex.c) -> open-po.c -> dir-list.c -> str-list.c.
+# (po.c <--> po-hash-gen.y <--> po-gram-gen.y <--> po-lex.c) -> po-charset.c.
+# (po.c <--> po-hash-gen.y <--> po-gram-gen.y <--> po-lex.c) -> message.c -> str-list.c.
+COMMON_SOURCES = message.c \
+po.c po-lex.c po-gram-gen.y po-hash-gen.y po-charset.c \
+open-po.c dir-list.c str-list.c
+
+# xgettext and msgfmt deal with format strings.
+FORMAT_SOURCES = format.c \
+format-c.c format-java.c format-lisp.c format-python.c format-ycp.c
+
 # Source dependencies.
 gettext_SOURCES = gettext.c
 ngettext_SOURCES = ngettext.c
-msgcmp_SOURCES = message.c msgcmp.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c str-list.c dir-list.c
-msgfmt_SOURCES = msgfmt.c open-po.c po-gram-gen.y po-hash-gen.y po-charset.c \
-po-lex.c po.c str-list.c message.c dir-list.c write-mo.c write-java.c \
-msgl-ascii.c msgl-iconv.c plural.c \
-format.c format-c.c format-java.c format-lisp.c format-python.c format-ycp.c
-msgmerge_SOURCES = message.c msgmerge.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c
-msgunfmt_SOURCES = message.c msgunfmt.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c read-mo.c read-java.c
-xgettext_SOURCES = message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c str-list.c xgettext.c dir-list.c write-po.c \
-msgl-ascii.c file-list.c x-c.c x-po.c x-java.l \
-format.c format-c.c format-java.c format-lisp.c format-python.c format-ycp.c
-msgattrib_SOURCES = msgattrib.c message.c open-po.c po-gram-gen.y \
-po-hash-gen.y po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c \
-write-po.c msgl-ascii.c
-msgcat_SOURCES = msgcat.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c msgl-iconv.c msgl-cat.c file-list.c
-msgcomm_SOURCES = msgcomm.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c msgl-iconv.c msgl-cat.c file-list.c
-msgconv_SOURCES = msgconv.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c msgl-iconv.c
-msgen_SOURCES = msgen.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c
-msgexec_SOURCES = msgexec.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c msgl-charset.c
-msggrep_SOURCES = msggrep.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c msgl-charset.c
-msguniq_SOURCES = msguniq.c message.c open-po.c po-gram-gen.y po-hash-gen.y \
-po-charset.c po-lex.c po.c read-po.c str-list.c dir-list.c write-po.c \
-msgl-ascii.c msgl-iconv.c msgl-cat.c
+msgcmp_SOURCES    = msgcmp.c    $(COMMON_SOURCES)
+msgfmt_SOURCES    = msgfmt.c    $(COMMON_SOURCES) msgl-ascii.c msgl-iconv.c write-mo.c write-java.c plural.c $(FORMAT_SOURCES)
+msgmerge_SOURCES  = msgmerge.c  $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c
+msgunfmt_SOURCES  = msgunfmt.c  $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c read-mo.c read-java.c
+xgettext_SOURCES  = xgettext.c  $(COMMON_SOURCES) msgl-ascii.c write-po.c file-list.c x-c.c x-po.c x-java.l $(FORMAT_SOURCES)
+msgattrib_SOURCES = msgattrib.c $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c
+msgcat_SOURCES    = msgcat.c    $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c msgl-iconv.c msgl-cat.c file-list.c
+msgcomm_SOURCES   = msgcomm.c   $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c msgl-iconv.c msgl-cat.c file-list.c
+msgconv_SOURCES   = msgconv.c   $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c msgl-iconv.c
+msgen_SOURCES     = msgen.c     $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c
+msgexec_SOURCES   = msgexec.c   $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c msgl-charset.c
+msggrep_SOURCES   = msggrep.c   $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c msgl-charset.c
+msguniq_SOURCES   = msguniq.c   $(COMMON_SOURCES) msgl-ascii.c write-po.c read-po.c msgl-iconv.c msgl-cat.c
 
 # Link dependencies.
 # po-lex.c and po.c may need -liconv.