3 # ibus-libpinyin - Intelligent Pinyin engine based on libpinyin for IBus
5 # Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 ENGLISH_AWK = english.awk
23 ENGLISH_DB = english.db
26 STROKES_AWK = strokes.awk
27 STROKES_DB = strokes.db
37 auxiliary_dbdir = $(pkgdatadir)/db
39 $(ENGLISH_DB): $(WORDLIST) $(ENGLISH_AWK)
42 $(AWK) -f $(srcdir)/$(ENGLISH_AWK) $(srcdir)/$(WORDLIST) | @SQLITE3@ $@ || \
45 $(STROKES_DB): $(STROKES) $(STROKES_AWK)
48 $(AWK) -f $(srcdir)/$(STROKES_AWK) $(srcdir)/$(STROKES) | @SQLITE3@ $@ || \
51 desktop_in_in_files = \
52 ibus-setup-libbopomofo.desktop.in.in \
53 ibus-setup-libpinyin.desktop.in.in \
56 desktop_in_files = $(desktop_in_in_files:.in.in=.in)
58 $(desktop_in_files): %.desktop.in: %.desktop.in.in Makefile
60 -e "s|\@libexecdir\@|$(libexecdir)|" \
61 -e "s|\@pkgdatadir\@|$(pkgdatadir)|" \
62 $< > $@.tmp && mv $@.tmp $@
64 desktopdir=$(datadir)/applications
65 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
67 @INTLTOOL_DESKTOP_RULE@
70 $(desktop_in_in_files) \