-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile.am
65 lines (60 loc) · 2.07 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
# Process this file with automake to produce Makefile.in
#
# $Id: Makefile.am 1460 2005-07-21 13:31:24Z taku-ku $;
#
@SET_MAKE@
AUTOMAKE_OPTIONS = 1.4 no-dependencies dist-bzip2 no-dist-gzip
SUBDIRS = src model man
confdir = $(sysconfdir)
conf_DATA = cabocharc
EXTRA_DIST = LGPL BSD
EXTRA_DIR = perl ruby python java swig tools example doc
bin_SCRIPTS = cabocha-config
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)/*/*/*/.svn; \
rm -rf $(distdir)/*/*/*/*/.svn; \
rm -rf $(distdir)/$$subdir/*/CVS; \
done
win-dist:
rm -fr @PACKAGE@-@VERSION@.exe wintmp
mkdir wintmp
cp -f example/*.c example/*.cpp src/cabocha.h wintmp
cp -f BSD LGPL COPYING wintmp
mkdir wintmp/model
for txt in model/dep.ipa.txt model/chunk.ipa.txt model/ne.ipa.txt; do \
nkf -s $$txt > wintmp/$$txt; \
done
perl -pe 's#\@prefix\@/lib/cabocha/model/#\$$(rcpath)\\..\\model\\#g; \
s#\@CHARSET\@#SHIFT-JIS#g; \
s#\@POSSET\@#IPA#g; \
s#\@POSSET2\@#ipa#g; \
s/# charset-file/charset-file/g;' \
< cabocharc.in | nkf -sc > wintmp/cabocharc
(cd wintmp; qkc -s -m *.cpp *.c *.h cabocharc)
ISCC.exe cabocha.iss
rm -fr wintmp
script-clean:
(cd perl; $(MAKE) clean; rm -f Makefile.old Makefile)
(cd ruby; $(MAKE) clean; rm -f Makefile *.log)
(cd python; rm -fr build *.pyc)
(cd java; $(MAKE) clean)
dist-all-package:
(test -f Makefile) && $(MAKE) distclean
./configure
$(MAKE) dist
$(MAKE) clean
$(MAKE) win
$(MAKE) win-dist
export-package:
python googlecode_upload.py -p cabocha -s cabocha -u taku@chasen.org -w `cat ~/.googlecode_upload_password` cabocha-@VERSION@.tar.bz2
python googlecode_upload.py -p cabocha -s cabocha-win -u taku@chasen.org -w `cat ~/.googlecode_upload_password` cabocha-@VERSION@.exe