]> granicus.if.org Git - mutt/commitdiff
patch-0.94.7i.rr.charsets_fix.1, from Roland Rosenfeld.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 29 Sep 1998 06:57:01 +0000 (06:57 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 29 Sep 1998 06:57:01 +0000 (06:57 +0000)
Makefile.in
charsets/Makefile.in
charsets/gen_charsets
charsets/parse_i18n.c

index 4f8413f3bdfe98ba70dae4730d7aa50457291bc1..ddad5346da777e856c7ef478f7b306ef8904f5b3 100644 (file)
@@ -57,7 +57,7 @@ NONEXPORT=pgp.c pgp.h pgpinvoke.c pgpkey.c pgppubring.c sha.h sha1dgst.c \
        gnupgparse.c sha_locl.h OPS.PGP doc/pgp-Notes.txt doc/language.txt \
        doc/language50.txt
 
-all: mutt @DOTLOCK_TARGET@ 
+all: mutt @DOTLOCK_TARGET@ charsets/charsets.list
 
 mutt: keymap_defs.h $(OBJS) $(REGEX)
        $(CC) -o mutt $(OBJS) $(REGEX) $(LDFLAGS) $(LIBS)
@@ -65,6 +65,9 @@ mutt: keymap_defs.h $(OBJS) $(REGEX)
 dotlock: dotlock.o @SNPRINTFOBJS@
        $(CC) -o dotlock dotlock.o @SNPRINTFOBJS@
 
+charsets/charsets.list:
+       ( cd $(srcdir)/charsets &&  $(MAKE) charsets.list)
+
 keymap_defs.h: Makefile $(OPS)
        rm -f keymap_defs.h
        $(srcdir)/gen_defs $(OPS) > keymap_defs.h
@@ -127,6 +130,7 @@ clean:
 
 veryclean:
        rm -f $(VERYCLEANFILES)
+       (cd $(srcdir)/charsets && $(MAKE) $@)
 
 distclean:
        (cd $(srcdir) && rm -f $(DISTCLEANFILES))
index 11da4bed1f557fd721319d4384e77b8288037a87..5755c10da1b2adb17cf6267d7de688c4d56217d1 100644 (file)
 SHELL=/bin/sh
 sharedir=@sharedir@
 CC=@CC@
-CFLAGS=@CFLAGS@
+CFLAGS=@CFLAGS@ -D_GEN_CHARSETS
 LDFLAGS=@LDFLAGS@
 srcdir=@srcdir@
 VPATH=@srcdir@
 @SET_MAKE@
 INSTALL=@INSTALL@
 
+charsets.list: parse_i18n
+       sh gen_charsets
+
 parse_i18n: parse_i18n.o
        $(CC) -o parse_i18n parse_i18n.o
 
 clean:
        -rm -f *.o *~ core parse_i18n
 
-distclean: clean
+distclean: clean veryclean
        -rm -f Makefile
 
 veryclean:
index 00fae06f0f9c1d457ff8ae6ea7312c93f97ccb1b..5ae2d6a75a002d7d1361c734234fcd7544db3859 100755 (executable)
@@ -4,6 +4,8 @@ dirs="/usr/local/lib/nls /usr/lib/nls /usr/local/share/nls /usr/share/nls"
 dirs="$dirs /usr/local/lib/i18n /usr/lib/i18n /usr/local/share/i18n"
 dirs="$dirs /usr/share/i18n"
 
+trap "rm -f ./charsets.$$; exit" 0 1 2 15
+
 rm -f ./charsets.list ./charsets.alias ./charsets.$$
 
 for d in $dirs ; do
index e4c148dc278c886f8be93f1cc7bf47296075e212..89502f932e51c397f49d0f0c720f1a89ff1117c0 100644 (file)
@@ -21,8 +21,6 @@
 #include <string.h>
 #include <ctype.h>
 
-#define _GEN_CHARSETS
-
 #include "../charset.h"
 
 #if 0