-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
66 lines (57 loc) · 2.47 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
AUTOMAKE_OPTIONS = 1.4 no-dependencies
SUBDIRS = doc lib chasen mkchadic tests
EXTRA_DIRS = perl
EXTRA_DIST = README INSTALL NEWS chasen.spec
bin_SCRIPTS = chasen-config
dist-hook:
for subdir in $(EXTRA_DIRS); do \
cp -rp $$subdir $(distdir)/$$subdir; \
rm -f $(distdir)/$$subdir/*~; \
rm -f $(distdir)/$$subdir/*.{bak,orig}; \
rm -f $(distdir)/$$subdir/.cvsignore; \
rm -f $(distdir)/$$subdir/autogen.sh; \
rm -rf $(distdir)/$$subdir/CVS; \
rm -rf $(distdir)/$$subdir/*/CVS; \
done
rpm: dist
rpm -ta @PACKAGE@-@[email protected]
win:
$(MAKE) distclean
env OBJDUMP=i386-mingw32msvc-objdump AS=i386-mingw32msvc-as \
AR=i386-mingw32msvc-ar RANLIB=i386-mingw32msvc-ranlib \
CXX=i386-mingw32msvc-g++ CC=i386-mingw32msvc-gcc \
NM=i386-mingw32msvc-nm DLLTOOL=i386-mingw32msvc-dlltool \
./configure --disable-shared --host=i386-pc-mingw32 --target=i386-pc-mingw32
$(KCONV) -s lib/chadic.h > lib/chadic-sjis.h
cp -f lib/chadic.h lib/chadic-euc.h
mv -f lib/chadic-sjis.h lib/chadic.h
$(MAKE) CFLAGS+=-DCHASEN_DLL_EXPORT LIBS=-lwsock32
(cd lib; $(MAKE) dll)
mv -f lib/chadic-euc.h lib/chadic.h
win-dic:
tar zxfv ipadic-sjis*.tar.gz
cd ipadic-sjis* && ./configure --with-mkchadic="wine -- ../mkchadic" --with-chasenrc-path=../@PACKAGE@-@VERSION@/etc/chasenrc --with-dicdir=../@PACKAGE@-@VERSION@/share/chasen/dic
cd ipadic-sjis* && make
win-dist:
rm -f @PACKAGE@-@[email protected]
rm -rf @PACKAGE@-@VERSION@
$(MAKE) prefix=`pwd`/@PACKAGE@-@VERSION@ install
cp COPYING README AUTHORS ./@PACKAGE@-@VERSION@/
rm -fr ./@PACKAGE@-@VERSION@/lib/libchasen*
rm -fr ./@PACKAGE@-@VERSION@/bin/chasen-config
cp -f lib/libchasen.dll ./@PACKAGE@-@VERSION@/lib
cp -f lib/libchasen.def ./@PACKAGE@-@VERSION@/lib
mkdir ./@PACKAGE@-@VERSION@/etc
cd ipadic-sjis* && make prefix=../@PACKAGE@-@VERSION@/ install
$(KCONV) -s -c ./@PACKAGE@-@VERSION@/etc/chasenrc | sed -e 's#/#\\\\#g' -e's#\.\.#c:\\\\Program\\ Files\\\\#g' -e 's#-@VERSION@##' >./@PACKAGE@-@VERSION@/etc/chasenrc.new
mv -f ./@PACKAGE@-@VERSION@/etc/chasenrc.new ./@PACKAGE@-@VERSION@/etc/chasenrc
zip -r @PACKAGE@-@[email protected] @PACKAGE@-@VERSION@
rm -fr @PACKAGE@-@VERSION@
win-dist2:
unzip @PACKAGE@-@[email protected]
(cd @PACKAGE@-@VERSION@; lha a @PACKAGE@-@[email protected] .)
mv -f @PACKAGE@-@VERSION@/@PACKAGE@-@[email protected] .
wine ./EXEpress.exe -- chasen.ini
rm -fr @PACKAGE@-@VERSION@ @PACKAGE@-@[email protected]
##Bug in automake: Can't use `if MAINTAINER_MODE'
@MAINTAINER_MODE_TRUE@include $(srcdir)/maintMakefile