blob: d8b33d18aca1c4b6174a125db6384acc8b64906e (
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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
#
# $FML: Makefile,v 1.75 2003/12/28 13:24:07 fukachan Exp $
#
TMPFILE = /tmp/log.fml-devel.test
all: link
clean:
@ (cd ../..; find fml regress |grep '~' |perl -nple unlink)
allclean: clean clean_link
rm -f __scan__
clean_link:
for file in * ; do test -h $$file && rm -f $$file || true ; done
scan:
@ (cd ../..; make scan 2>&1) |tee __scan__ || echo 'nothing changed'
@ cp __scan__ /tmp/fmlsrc.__scan__
update:
@ (cd ../..; make update)
check:
- test -f 33_TODO && mv -f 33_TODO 33_TODO.bak
@ echo " *********** 00_MEMO ********** " >> 33_TODO
- grep '^\[TODO' 00_MEMO >> 33_TODO
@ echo "" >> 33_TODO
@ echo " *********** PERL SYNTAX CHECKS ********** " >> 33_TODO
- (cd ../../fml; make check 2>&1 |\
grep -v 'syntax OK' |\
tee -a ../regress/simulation/33_TODO) |\
grep -v OK || echo ''
@ echo "" >> 33_TODO
@ echo " *********** CHECK VARIABLE DEFINITIONS ********** " >> 33_TODO
@ ../variable/diff.pl >> 33_TODO
@ echo "" >> 33_TODO
@ echo " *********** STATUS.txt ********** " >> 33_TODO
@ echo "" >> 33_TODO
- egrep '^[0-9]|\[TODO\]' ../../fml/doc/ja/todo/STATUS.txt >> 33_TODO
@ echo "" >> 33_TODO
@ echo " *********** XXX-TODO ********** " >> 33_TODO
@ echo "" >> 33_TODO
- ./.gen_todo.pl \
`find lib/ -type f -print |\
egrep '\.pm$$' ` |\
sed -e 's@^lib//@@' -e 's@^lib/@@' |\
tee -a 33_TODO
- test -f 44_STYLE && mv -f 44_STYLE 44_STYLE.bak
- ../style/find_bad_style.pl \
`find lib/ -type f -print |\
egrep '\.pm$$' ` |\
sed -e 's@^lib//@@' -e 's@^lib/@@' |\
tee 44_STYLE
- test -s 33_TODO || rm -f 33_TODO
- test -s 44_STYLE || rm -f 44_STYLE
@ echo ""; echo "-- summary"; echo "";
@ echo -n "TODO: ";
@ grep TODO 33_TODO| wc -l
link: clean_link _link
_link:
ln -s ../../fml/doc/ja ja-doc
ln -s ../../fml/doc/en en-doc
ln -s ../../fml/etc
ln -s ../../fml/lib
ln -s ../../fml/lib/FML
ln -s ../../fml/lib/FML/Filter
ln -s ../../fml/lib/FML/CGI
ln -s ../../fml/lib/FML/ML
ln -s ../../fml/lib/FML/User
ln -s ../../fml/lib/FML/Process
ln -s ../../fml/lib/FML/Command Command
ln -s ../../fml/lib/FML/Command/Admin AdminCommand
ln -s ../../fml/lib/FML/Command/User UserCommand
ln -s ../../fml/lib/FML/MTAControl MTAControl
ln -s ../../fml/lib/IO
ln -s ../../fml/lib/File
ln -s ../../fml/lib/Tie
ln -s ../../fml/lib/Mail
ln -s ../../fml/lib/Mail/ThreadTrack
ln -s ../../fml/libexec
ln -s /var/spool/ml/elena/log
ln -s ../../cpan/doc doc-devel
ln -s ../../fml/doc/ja/tutorial tutorial
ln -s ../../fml/doc/ja/todo TODO
ln -s ../../fml/doc/ja/recipes recipies
ln -s ../../fml/share/message/euc-jp message-euc-jp
diff:
@ (cd ../..;cvs diff -ub)
test:
@ make _test 2>&1 | tee $(TMPFILE)
@ echo ""; echo "--- summary ---"; echo "";
@ egrep '\* |fail *$$' $(TMPFILE) |\
sed 's|text=empty fail|text=empty fail (ok)|' || echo ''
@ rm -f $(TMPFILE)
_test:
@ echo "* IO::* class test"
@ apply perl IO/t/*pl
@ test -d /tmp/fml5 || mkdir /tmp/fml5
@ make -f ../base/Makefile
@ (cd ../cf; make test)
@ echo "* errormails"
@ (cd ../errormails; make check)
diag:
env PATH=/usr/pkg/bin:$$PATH make check
depend:
perl ../style/list_up_dependence.pl `find lib/ -type f |grep pm` |\
tee 55_DEPEND.bak
#
# re-generate files for fml/etc/ and fml/doc/
#
LIST_TARGET = ../../fml/doc/share/config/list_makefml_command.txt
regen: regen_default_config_cf regen_command_list _doc_tutorial
regen_default_config_cf:
(cd ../../fml/etc; make )
regen_command_list: $(LIST_TARGET)
$(LIST_TARGET): ../../fml/etc/src/config.cf.ja/command.cf
sh ../../fml/utils/bin/listup_commnads.sh
_doc_tutorial:
(cd ../../fml/doc/ja/tutorial;make -f Makefile.local)
(cd ../../fml/doc/en/tutorial;make -f Makefile.local)
|