Fix make distcheck errors.
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 27 May 2011 14:47:13 +0000 (10:47 -0400)
committerPeng Huang <shawn.p.huang@gmail.com>
Fri, 27 May 2011 14:47:13 +0000 (10:47 -0400)
BUG=make distcheck failed
TEST=Manually

Review URL: http://codereview.appspot.com/4551054

configure.ac
data/Makefile.am
data/db/android/Makefile.am
data/db/open-phrase/Makefile.am

index 8ffdd29..358d818 100644 (file)
@@ -95,12 +95,12 @@ AC_SUBST(ENV)
 # check python
 AM_PATH_PYTHON([2.5])
 
-# --disble-boost
+# --enable-boost
 AC_ARG_ENABLE(boost,
-    AC_HELP_STRING([--disable-boost],
-        [Do not use boost and use stdc++0x to replace boost.]),
+    AC_HELP_STRING([--enable-boost],
+        [Use boost to replace stdc++0x.]),
         [enable_boost=$enableval],
-        [enable_boost=yes]
+        [enable_boost=no]
 )
 if test x"$enable_boost" = x"yes"; then
     # check boost
index 02e8feb..6025de3 100644 (file)
@@ -27,16 +27,22 @@ SUBDIRS = \
        icons \
        $(NULL)
 
+english_db_DATA = \
+        $(ENGLISH_DB) \
+        $(NULL)
+english_dbdir = $(pkgdatadir)/db
+
+$(ENGLISH_DB): $(WORDLIST) $(ENGLISH_AWK)
+       $(AM_V_GEN) \
+       $(RM) $@; \
+       $(AWK) -f $(srcdir)/$(ENGLISH_AWK) $(srcdir)/$(WORDLIST) | @SQLITE3@ $@ || \
+               ( $(RM) $@ ; exit 1 )
 
 EXTRA_DIST = \
        $(WORDLIST) \
        $(ENGLISH_AWK) \
        $(NULL)
 
-english_db_DATA = \
-        $(ENGLISH_DB) \
-        $(NULL)
-english_dbdir = $(pkgdatadir)/db
-
-$(ENGLISH_DB): $(WORDLIST)
-       $(AWK) -f english.awk $< |sqlite3 $@
+CLEANFILES = \
+       $(ENGLISH_DB) \
+       $(NULL)
index 7574596..d36546c 100644 (file)
@@ -48,7 +48,7 @@ EXTRA_DIST = \
        $(NULL)
 
 CLEANFILES = \
-       android.db \
+       $(main_db_DATA) \
        $(NULL)
 
 DISTCLEANFILES = \
index f343ec5..c77b0a2 100644 (file)
@@ -31,7 +31,7 @@ DBTAR = pinyin-database-$(DBVER).tar.bz2
 
 $(DBTAR):
        $(AM_V_GEN) \
-       wget http://ibus.googlecode.com/files/$(DBTAR) && \
+       wget http://ibus.googlecode.com/files/$(DBTAR) || \
        ( $(RM) $@; exit 1)
 
 stamp-db: $(DBTAR)