-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
91 lines (81 loc) · 3.19 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Process this file with automake to produce Makefile.in
#
# $Id: Makefile.am,v 1.7 2006/05/29 15:36:08 taku-ku Exp $;
#
@SET_MAKE@
AUTOMAKE_OPTIONS = 1.4 no-dependencies
SUBDIRS = src man doc tests
confdir = $(sysconfdir)
conf_DATA = mecabrc
EXTRA_DIST = LGPL GPL BSD Makefile.train
EXTRA_DIR = swig example
bin_SCRIPTS = mecab-config
ACLOCAL_AMFLAGS=-I m4
dist-hook:
for subdir in $(EXTRA_DIR); do \
cp -rp $$subdir $(distdir); \
rm -f $(distdir)/$$subdir/*~; \
rm -f $(distdir)/$$subdir/*.{bak,orig}; \
rm -rf $(distdir)/$$subdir/CVS; \
rm -rf $(distdir)/$$subdir/*/CVS; \
rm -rf $(distdir)/$$subdir/.svn; \
rm -rf $(distdir)/.svn; \
rm -rf $(distdir)/*/.svn; \
rm -rf $(distdir)/*/*/.svn; \
rm -rf $(distdir)/$$subdir/*/CVS; \
done
rpm: dist
env PATH="/usr/bin:$$PATH" rpmbuild -ta @PACKAGE@-@[email protected]
win:
make
(cd src; wcmd /c make.bat)
win-dic:
(cd dic; ../src/mecab-dict-index -f EUC-JP -t SHIFT-JIS)
win-dist:
rm -fr wintmp @PACKAGE@-@[email protected]
cp -fr example wintmp
perl -pe 's#\@prefix\@/lib/mecab/dic/ipadic#\$$(rcpath)\\..\\dic\\ipadic#g;' \
< mecabrc.in > wintmp/mecabrc
(cd wintmp; qkc -m -s -c *.c *.cpp)
mkdir wintmp/dic
cp -f dic/*.csv dic/*.def dic/dicrc wintmp/dic
sed s/EUC-JP/SHIFT-JIS/ dic/dicrc > wintmp/dic/dicrc
(cd wintmp/dic; qkc -m -s -c *)
wine ~/.root/bin/inno/ISCC.exe mecab.iss
rm -fr wintmp
script-dist:
for subdir in perl ruby python java; do \
rm -fr mecab-$${subdir}-@VERSION@; \
mkdir mecab-$${subdir}-@VERSION@; \
cp -r COPYING BSD LGPL GPL AUTHORS mecab-$${subdir}-@VERSION@; \
cp -r $${subdir}/* mecab-$${subdir}-@VERSION@; \
cp -r doc/bindings.html mecab-$${subdir}-@VERSION@; \
find ./mecab-$${subdir}-@VERSION@ -type d -name CVS | xargs rm -fr; \
find ./mecab-$${subdir}-@VERSION@ -type d -name .svn | xargs rm -fr; \
rm -f mecab-$${subdir}-@VERSION@/*~; \
tar zcfv mecab-$${subdir}-@[email protected] mecab-$${subdir}-@VERSION@; \
rm -fr mecab-$${subdir}-@VERSION@; \
done
script-clean:
(cd perl; $(MAKE) clean; rm -f Makefile.old Makefile)
(cd ruby; $(MAKE) clean; rm -f Makefile *.log)
(cd python; python setup.py clean --all)
(cd java; $(MAKE) clean;)
dist-all-package:
(cd swig; $(MAKE))
$(MAKE) script-clean
(test -f Makefile) && $(MAKE) distclean
./configure
$(MAKE) dist
$(MAKE) script-dist
$(MAKE) clean
$(MAKE) win
$(MAKE) win-dic
$(MAKE) win-dist
export-package:
python googlecode_upload.py -p mecab -s mecab -u [email protected] -w `cat ~/.googlecode_upload_password` mecab-@[email protected]
python googlecode_upload.py -p mecab -s mecab-win -u [email protected] -w `cat ~/.googlecode_upload_password` mecab-@[email protected]
python googlecode_upload.py -p mecab -s mecab-perl -u [email protected] -w `cat ~/.googlecode_upload_password` mecab-perl-@[email protected]
python googlecode_upload.py -p mecab -s mecab-ruby -u [email protected] -w `cat ~/.googlecode_upload_password` mecab-ruby-@[email protected]
python googlecode_upload.py -p mecab -s mecab-python -u [email protected] -w `cat ~/.googlecode_upload_password` mecab-python-@[email protected]
python googlecode_upload.py -p mecab -s mecab-java -u [email protected] -w `cat ~/.googlecode_upload_password` mecab-java-@[email protected]