File: Makefile.am

package info (click to toggle)
chasen 2.4.5-44
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,556 kB
  • sloc: sh: 10,024; ansic: 5,983; cpp: 179; makefile: 111; perl: 10
file content (66 lines) | stat: -rw-r--r-- 2,527 bytes parent folder | download | duplicates (7)
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@-@VERSION@.tar.gz

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@-@VERSION@.zip
	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@-@VERSION@.zip @PACKAGE@-@VERSION@
	rm -fr @PACKAGE@-@VERSION@

win-dist2:
	unzip @PACKAGE@-@VERSION@.zip
	(cd @PACKAGE@-@VERSION@; lha a @PACKAGE@-@VERSION@.lzh .)
	mv -f @PACKAGE@-@VERSION@/@PACKAGE@-@VERSION@.lzh .
	wine ./EXEpress.exe -- chasen.ini
	rm -fr @PACKAGE@-@VERSION@ @PACKAGE@-@VERSION@.lzh

##Bug in automake: Can't use `if MAINTAINER_MODE'
@MAINTAINER_MODE_TRUE@include $(srcdir)/maintMakefile