summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 6ca693a8e4cf5a6efca754119cae605f3c23cea7 (plain)
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
#
# $FML: Makefile,v 1.24 2003/07/24 23:25:47 fukachan Exp $
#

PERL = @PERL@ 
GIT  = @GIT@

all: usage

usage:
	@ echo "make install    install"
	@ echo ""
	@ echo "make doc        generate documents"
	@ echo "make tutorial   generate turorials"
	@ echo ""
	@ echo "make clean             "

install:
	${PERL} ./install.pl fml/etc/install.cf

scan:
	@ ${GIT} status -s

update:
	@ ${GIT} pull --rebase

clean:
	@ find . | grep '~' | ${PERL} -nple unlink

doc: text html

html: _new_doc _html ja.doc en.doc

text: gen_changes

gen_changes:
	test -d Documentation/ja/text || mkdir Documentation/ja/text
	test -d Documentation/en/text || mkdir Documentation/en/text
	- cp CHANGES.txt Documentation/ja/text
	- fml/utils/bin/del_jaline.pl CHANGES.txt \
			> Documentation/en/text/CHANGES.txt

_new_doc:
	test -d Documentation/en/modules || mkdir Documentation/en/modules
	-fml/utils/bin/pm2txt.pl fml/lib  Documentation/en/modules
	-fml/utils/bin/pm2txt.pl cpan/lib Documentation/en/modules
	-fml/utils/bin/pm2txt.pl img/lib  Documentation/en/modules

_html:
	@ (cd cpan/dist/;   make html)
	@ (cd img/dist/;    make html)

ja.doc:
	@ (cd fml/doc/ja/; make clean; make ; make clean)

en.doc:
	@ (cd fml/doc/en/; make clean; make ; make clean)

regen: fml/etc/paths.cf.in

fml/etc/paths.cf.in: configure.in
	./fml/utils/bin/gen_paths.cf.pl configure.in > fml/etc/paths.cf.in.new
	mv fml/etc/paths.cf.in.new fml/etc/paths.cf.in