-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile-xx.in
336 lines (277 loc) · 13.9 KB
/
Makefile-xx.in
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
# Copyright (C) 2004, 2005, 2006, 2007 Kevin P. Scannell <[email protected]>
#
# This is free software; see the file COPYING for copying conditions. There is
# NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
SHELL = /bin/sh
.SUFFIXES: .in .pl
# general configuration
ECHO = !ECHO!
EGREP = !EGREP!
LN_S = !LN_S!
PERL = !PERL!
# package configuration
GRAMDIR = !GRAMDIR!
TEANGA = !TEANGA!
UPPERTEANGA = !UPPERTEANGA!
NAME_ENG = !NAME_ENG!
VERSION = !VERSION!
GRAMVERSION = !GRAMVERSION!
PACKAGE_NAME = gramadoir-$(TEANGA)
TARBALL = gramadoir-$(TEANGA)-$(VERSION)
PERLVERSION = $(VERSION)
PERLD = Lingua-$(UPPERTEANGA)-Gramadoir
PERLDOK = tree_ok
PERLLIB = $(PERLD)/lib/Lingua/$(UPPERTEANGA)/Gramadoir
SHARE = $(PERLD)/share
NATIVE = !NATIVE!
BDCHARS = !BDCHARS!
CAPITALS = !UPPERS!
LOWERS = !LOWERS!
# targets '
SCRIPTNAME = gram-${TEANGA}.pl
DEVSCRIPTNAME = gramdev-${TEANGA}.pl
OOSCRIPTNAME = groo-$(TEANGA).pl
PERLTOP = $(PERLD)/Changes $(PERLD)/Makefile.PL $(PERLD)/MANIFEST $(PERLD)/MANIFEST.SKIP $(PERLD)/README
PERLCODE = $(PERLD)/scripts/$(SCRIPTNAME) $(PERLLIB).pm $(PERLD)/scripts/$(OOSCRIPTNAME)
LEXICONS = $(SHARE)/3grams.bs $(SHARE)/earraidi.bs $(SHARE)/eile.bs $(SHARE)/focail0.bs $(SHARE)/nocombo.bs $(SHARE)/pos.bs $(SHARE)/morph.bs $(SHARE)/messages.bs $(SHARE)/token.bs
EXTRAS = $(SHARE)/gramadoir.el $(SHARE)/gramadoir.vim $(SHARE)/gramadoir.sxw
TESTS = $(PERLD)/t/$(PERLD).t
LOCALES = locale_ok $(PERLLIB)/Languages.pm $(PERLLIB)/Languages/en_us.pm
INTERMEDIATE = aonchiall-$(TEANGA).pl comhshuite-$(TEANGA).pl giorr-$(TEANGA).pl rialacha-$(TEANGA).pl unigram-$(TEANGA).pl
HASHDIR = ${PERLD}/lib/Lingua/${UPPERTEANGA}/Gramadoir
all : perldistfiles $(DEVSCRIPTNAME)
$(PERLDOK) :
mkdir ${PERLD}
mkdir ${PERLD}/lib
mkdir ${PERLD}/lib/Lingua
mkdir ${PERLD}/lib/Lingua/${UPPERTEANGA}
mkdir ${PERLD}/lib/Lingua/${UPPERTEANGA}/Gramadoir
mkdir ${PERLD}/lib/Lingua/${UPPERTEANGA}/Gramadoir/Languages
mkdir ${PERLD}/scripts
mkdir ${PERLD}/share
mkdir ${PERLD}/t
touch $(PERLDOK)
perldistfiles : $(PERLTOP) $(PERLCODE) $(LEXICONS) $(EXTRAS) $(TESTS) $(LOCALES)
perldb : FORCE $(PERLDOK)
(cd $(PERLD); if [ -e Makefile ]; then make distclean; fi)
$(MAKE) perl
perl : perldistfiles $(PERLD)/Makefile
(cd $(PERLD); make)
$(PERLD)/Makefile : $(PERLD)/Makefile.PL $(LEXICONS)
(cd $(PERLD); $(PERL) Makefile.PL)
Makefile : $(GRAMDIR)/Makefile-xx.in configure
./configure
test : perl
(cd $(PERLD); make test)
install : perl
(cd $(PERLD); make pure_install)
installcheck : triail FORCE
@LC_ALL=ga_IE $(SCRIPTNAME) --api --iomlan --aspell triail > triail.tmp.xml
@if diff triail.xml triail.tmp.xml; then $(ECHO) 'OK.'; else $(ECHO) 'Problem.'; fi
@rm -f triail.tmp.xml
lexicon-$(TEANGA).txt : lexicon-$(TEANGA).bs
cat lexicon-$(TEANGA).bs | LC_ALL="C" $(PERL) $(GRAMDIR)/cabhair.pl -d --encoding=$(NATIVE) > $@
$(PERLD)/Changes : Changes $(PERLDOK)
cp -f Changes $@
chmod 644 $@
$(PERLD)/Makefile.PL : $(GRAMDIR)/Makefile.PL.in $(PERLDOK)
cat $(GRAMDIR)/Makefile.PL.in | sed "s/@TEANGA@/$(UPPERTEANGA)/g; s/@LOWERTEANGA@/$(TEANGA)/g" | \
if $(ECHO) "$(NATIVE)" | $(EGREP) -i 'utf' > /dev/null; \
then \
sed '/^#.*binmode/d'; \
else \
sed '/#.*binmode/s/#//g'; \
fi > $@
chmod 644 $@
$(PERLD)/MANIFEST : $(GRAMDIR)/MANIFEST $(PERLDOK)
cat $(GRAMDIR)/MANIFEST | sed "s/@TEANGA@/$(TEANGA)/; s/@UPPERTEANGA@/$(UPPERTEANGA)/" > $@
chmod 644 $@
$(PERLD)/MANIFEST.SKIP : $(GRAMDIR)/MANIFEST.SKIP $(PERLDOK)
cp -f $(GRAMDIR)/MANIFEST.SKIP $@
chmod 644 $@
$(PERLD)/META.yml : perl
(cd $(PERLD); make metafile)
$(PERLD)/README : $(GRAMDIR)/README.perl $(PERLDOK)
(sed "s/@UPPERTEANGA@/$(UPPERTEANGA)/; s/@TEANGA@/$(TEANGA)/; s/@VERSION@/$(VERSION)/; s/@GRAMVERSION@/$(GRAMVERSION)/; s/@NAME_ENG@/$(NAME_ENG)/" $(GRAMDIR)/README.perl; cat README) > $@
chmod 644 $@
$(PERLD)/scripts/$(SCRIPTNAME) : $(GRAMDIR)/gram.pl $(PERLDOK)
cat $(GRAMDIR)/gram.pl | sed "s/@SCRIPTNAME@/$(SCRIPTNAME)/; s/@PACKAGE_VERSION@/$(PERLVERSION)/; s/@TEANGA@/$(UPPERTEANGA)/g; s/@NATIVE@/$(NATIVE)/g; s/@NAME_ENGLISH@/$(NAME_ENG)/g" > $@
chmod 644 $@
$(PERLD)/scripts/$(OOSCRIPTNAME) : $(GRAMDIR)/OOo/groo.pl $(PERLDOK)
cat $(GRAMDIR)/OOo/groo.pl | sed "s/@SCRIPTNAME@/$(OOSCRIPTNAME)/; s/@TEANGA@/$(UPPERTEANGA)/g; s/@LOWERTEANGA@/$(TEANGA)/g; s/@NAME_ENGLISH@/$(NAME_ENG)/g" > $@
chmod 644 $@
$(SHARE)/3grams.bs : 3grams-$(TEANGA).txt $(PERLDOK)
cp 3grams-$(TEANGA).txt $@
chmod 644 $@
rm -f $(HASHDIR)/3grams.hash $(PERLD)/Makefile
$(SHARE)/earraidi.bs : earraidi-$(TEANGA).bs $(PERLDOK)
cp earraidi-$(TEANGA).bs $@
chmod 644 $@
rm -f $(HASHDIR)/earraidi.hash $(PERLD)/Makefile
$(SHARE)/eile.bs : eile-$(TEANGA).bs $(PERLDOK)
cp eile-$(TEANGA).bs $@
chmod 644 $@
rm -f $(HASHDIR)/eile.hash $(PERLD)/Makefile
$(SHARE)/nocombo.bs : nocombo-$(TEANGA).txt $(PERLDOK)
(cat nocombo-$(TEANGA).txt; $(EGREP) "^[$(LOWERS)]" earraidi-$(TEANGA).bs | sed 's/ .*//') | LC_ALL=C sort -u > $@
chmod 644 $@
rm -f $(HASHDIR)/nocombo.hash $(PERLD)/Makefile
$(SHARE)/pos.bs : pos-$(TEANGA).txt $(PERLDOK)
cp pos-$(TEANGA).txt $@
chmod 644 $@
rm -f $(HASHDIR)/pos.hash $(PERLD)/Makefile
$(SHARE)/morph.bs : morph-$(TEANGA).txt $(PERLDOK)
cp morph-$(TEANGA).txt $@
chmod 644 $@
rm -f $(HASHDIR)/morph.hash $(PERLD)/Makefile
$(SHARE)/messages.bs : $(GRAMDIR)/messages.txt $(PERLDOK)
cp $(GRAMDIR)/messages.txt $@
chmod 644 $@
rm -f $(HASHDIR)/messages.hash $(PERLD)/Makefile
$(SHARE)/token.bs : token-$(TEANGA).in $(PERLDOK)
cp token-$(TEANGA).in $@
chmod 644 $@
rm -f $(HASHDIR)/token.hash $(PERLD)/Makefile
$(SHARE)/gramadoir.el : $(GRAMDIR)/gramadoir.el $(PERLDOK)
sed "s/gram-ga\.pl/$(SCRIPTNAME)/g" $(GRAMDIR)/gramadoir.el > $@
$(SHARE)/gramadoir.vim : $(GRAMDIR)/gramadoir.vim $(PERLDOK)
sed "s/gram-ga\.pl/$(SCRIPTNAME)/g" $(GRAMDIR)/gramadoir.vim > $@
$(SHARE)/gramadoir.sxw : $(GRAMDIR)/OOo/gramadoir.sxw $(PERLDOK)
cp -f $(GRAMDIR)/OOo/gramadoir.sxw $@
$(PERLD)/t/$(PERLD).t : $(GRAMDIR)/Lingua-XX-Gramadoir.t triail triail.xml $(PERLDOK)
-$(EGREP) '^<error ' triail.xml > triail-temp.xml
cat $(GRAMDIR)/Lingua-XX-Gramadoir.t | sed "s/@TEANGA@/$(UPPERTEANGA)/g; s/@NATIVE@/$(NATIVE)/g; s/tests => 1;/tests => `cat triail.xml | wc -l | sed 's/^ *//'`;/" | sed "/<<.EOF.;/r triail" | sed "/<<.RESEOF.;/r triail-temp.xml" > $@
chmod 644 $@
rm -f triail-temp.xml
triail : rialacha-$(TEANGA).in
sed -n '/^#\./{s/^#\. //; p;}' rialacha-$(TEANGA).in > triail
triail.xml-update : FORCE
$(MAKE) triail
$(MAKE) perl
rm -f triail.xml
$(PERL) -I $(PERLD)/lib $(PERLD)/scripts/$(SCRIPTNAME) --api --iomlan --aspell --comheadan=ga triail > triail.xml
# last line (subst of \x{} codes) is a hack for legacy encodings w/ 5.8.0
$(PERLLIB).pm : $(GRAMDIR)/Gramadoir.pm.in $(INTERMEDIATE) $(PERLDOK)
sed "/^# aonchiall code /r aonchiall-$(TEANGA).pl" $(GRAMDIR)/Gramadoir.pm.in | sed "/^# comhshuite code /r comhshuite-$(TEANGA).pl" | sed "/^# giorr code /r giorr-$(TEANGA).pl" | sed "/^# rialacha code /r rialacha-$(TEANGA).pl" | sed "/^# unigram code /r unigram-$(TEANGA).pl" | \
LC_ALL=C sed "s/@PACKAGE_VERSION@/$(PERLVERSION)/; s/@TEANGA@/$(UPPERTEANGA)/g; s/@NAME_ENGLISH@/$(NAME_ENG)/g; s/@NATIVE@/$(NATIVE)/g; s/@BDCHARS@/$(BDCHARS)/g; s/@CAPITALS@/$(CAPITALS)/g; s/@LOWERS@/$(LOWERS)/g;" | sed '/^# [a-z]* code goes here/d' > $@
if $(ECHO) "$(NATIVE)" | $(EGREP) -i 'utf' > /dev/null; \
then \
LC_ALL="C" $(PERL) -i -p -e 'if (m/^use warnings/) {s/(.*)/$${1}\nuse utf8;/;} if (m/decode\(/) {s/^/#/;} if (m/eval.*from_to/) {s/^(.*from_to\(([^,]+), *([^,]+),.*)/#$${1}\n\teval {$$2 = decode($$3, $$2) };/}' $@; \
else \
LC_ALL="C" $(PERL) -i -p -e 's/([\x{80}-\x{ff}])/sprintf("\\x{%x}",ord($$1));/ge;' $@; \
fi
chmod 644 $@
$(PERLLIB)/Languages.pm : $(GRAMDIR)/Languages.pm $(PERLDOK)
sed "s/@TEANGA@/$(UPPERTEANGA)/g" $(GRAMDIR)/Languages.pm > $@
$(PERLLIB)/Languages/en_us.pm : $(GRAMDIR)/Languages-en_us.pm $(PERLDOK)
sed "s/@TEANGA@/$(UPPERTEANGA)/g" $(GRAMDIR)/Languages-en_us.pm > $@
locale_ok : $(PERLDOK)
cat $(GRAMDIR)/po/LINGUAS | tr " " "\n" | $(EGREP) '[a-z]' | \
while read x; \
do \
sed -n '1,/^"Content-Transfer-Encoding/{/^[^#]/s/^/#/; p;}' $(GRAMDIR)/po/$${x}.po > pometa.txt; \
LC_ALL="C" $(PERL) $(GRAMDIR)/po2perl.pl $(GRAMDIR)/po/$${x}.po "$${x}" | iconv -f `$(EGREP) '^"Content-Type:' $(GRAMDIR)/po/$${x}.po | sed 's/^.*charset *= *\([^ ]*\)\\\n.*/\1/'` -t utf-8 | sed "/^package/r pometa.txt" | sed "s/@TEANGA@/$(UPPERTEANGA)/g" > $(PERLLIB)/Languages/$${x}.pm; \
rm -f pometa.txt; \
done
touch locale_ok
%.pl : %.in macra-$(TEANGA).meta.pl $(GRAMDIR)/gin.meta.pl pos-$(TEANGA).txt
cat "$<" | LC_ALL="C" $(PERL) $(GRAMDIR)/gin.meta.pl `sed -n '/<[A-Z] /{s/^[0-9]* <\([A-Z]\).*/\1/; p;}' pos-$(TEANGA).txt | sort -u | tr -d "\n"` | LC_ALL="C" $(PERL) -p macra-${TEANGA}.meta.pl | LC_ALL="C" $(PERL) $(GRAMDIR)/`$(ECHO) $< | sed 's/-.*//'`.meta.pl | sed 's/^/\t/' > $@
giorr-$(TEANGA).pl : giorr-$(TEANGA).txt giorr-$(TEANGA).pre
(cat giorr-$(TEANGA).pre | $(EGREP) '^s/' | sed 's/^/\t/'; cat giorr-$(TEANGA).txt | LC_ALL=C sed 's/ .*//' | LC_ALL=C sed 's/.*/\ts\/([^@BDCHARS@]&)\\.\/$$1$$NOBD.\/g;/') > $@
unigram-$(TEANGA).pl : unigram-$(TEANGA).pre unigram-$(TEANGA).txt
(cat unigram-$(TEANGA).pre | $(EGREP) '^s/' | sed 's/^/\t/'; cat unigram-$(TEANGA).txt | LC_ALL=C sed 's/^\(<\([A-Z]\)[^>]*\)>/\ts\/<B><Z>(?:<[^>]*>)*\1.>(?:<[^>]*>)*<\\\/Z>([^<]+)<\\\/B>\/\1>$$1<\\\/\2>\/g;/') > $@
$(SHARE)/focail0.bs : lexicon-$(TEANGA).txt freq-$(TEANGA).txt $(PERLDOK)
cat lexicon-$(TEANGA).txt | LC_ALL="C" $(PERL) $(GRAMDIR)/count.pl freq-$(TEANGA).txt | LC_ALL=C sort -n -r > lex.txt
rm -f lexicon?.txt
$(EGREP) '^0' lex.txt | sed 's/^0 //' > lexicon6.txt
$(EGREP) '^1 ' lex.txt | sed 's/^1 //' > lexicon5.txt
cat lex.txt | sed '/^[01] /d' | sed 's/^[0-9]* //' | LC_ALL="C" $(PERL) $(GRAMDIR)/lexbuild
for FILENUM in 0 1 2 3 4 5 6; \
do \
cat lexicon$${FILENUM}.txt | LC_ALL=C sort -u -k1,1 -k2,2n | LC_ALL="C" $(PERL) $(GRAMDIR)/cabhair.pl --compress --encoding=$(NATIVE) > $(SHARE)/focail$${FILENUM}.bs; \
done
rm -f lexicon?.txt lex.txt
chmod 644 $(SHARE)/focail?.bs
rm -f $(HASHDIR)/focail*.hash $(PERLD)/Makefile
$(DEVSCRIPTNAME) : $(GRAMDIR)/gramdev.pl
cat $(GRAMDIR)/gramdev.pl | sed "s/@SCRIPTNAME@/$(DEVSCRIPTNAME)/; s/@PACKAGE_VERSION@/$(PERLVERSION)/; s/@TEANGA@/$(UPPERTEANGA)/g; s/@NATIVE@/$(NATIVE)/g; s/@NAME_ENGLISH@/$(NAME_ENG)/g" > $@
if $(ECHO) "$(NATIVE)" | $(EGREP) -i 'utf' > /dev/null; \
then \
LC_ALL="C" $(PERL) -p -i -e 's/(.*)/$$1\nuse utf8;/ if m/^use warnings/;' $@; \
else \
LC_ALL="C" $(PERL) -i -p -e 's/([\x{80}-\x{ff}])/sprintf("\\x{%x}",ord($$1));/ge;' $@; \
fi
chmod 755 $@
gram-$(TEANGA).dtd : pos-$(TEANGA).txt $(GRAMDIR)/gram2dtd.pl
$(PERL) $(GRAMDIR)/gram2dtd.pl $(TEANGA) > $@
poncin : FORCE
@cd $(GRAMDIR) && make parsers
@$(ECHO) 'Checking aonchiall-$(TEANGA).in'
@cat aonchiall-$(TEANGA).in | $(GRAMDIR)/aparser
@$(ECHO) 'Checking rialacha-$(TEANGA).in'
@cat rialacha-$(TEANGA).in | $(GRAMDIR)/rparser
topclean :
rm -f $(INTERMEDIATE) *.tar.gz *.zip triail $(DEVSCRIPTNAME) gram-$(TEANGA).dtd
# lexicon-xx.txt is treated like a distributed file even though it's not
distclean :
$(MAKE) clean
$(MAKE) lexicon-$(TEANGA).txt # this line and next ensure .bs is OK
$(MAKE) rebuildlex
rm -f Makefile $(PERLDOK) lexicon-$(TEANGA).txt
rm -fR $(PERLD)
clean :
if [ -e $(PERLD)/Makefile ]; then (cd $(PERLD); make distclean); fi
$(MAKE) topclean
rm -f $(PERLTOP) $(PERLCODE) $(LEXICONS) $(EXTRAS) $(TESTS) $(PERLD)/Makefile locale_ok $(PERLLIB)/Languages.pm $(PERLLIB)/Languages/*.pm $(SHARE)/focail?.bs $(PERLD)/META.yml
# assumes lexicon-xx.txt is in place and more recent that the .bs
rebuildlex : FORCE
rm -f lexicon-$(TEANGA).bs
cat lexicon-$(TEANGA).txt | LC_ALL="C" $(PERL) $(GRAMDIR)/cabhair.pl -c --encoding=$(NATIVE) > lexicon-$(TEANGA).bs
dist : FORCE
$(MAKE) lexicon-$(TEANGA).txt # so next line won't kill .bs
$(MAKE) rebuildlex
$(LN_S) `pwd` ../$(TARBALL)
LC_ALL="C" $(PERL) -p -i -e 's/^#!.*/#!!PERLPATH!/' macra-$(TEANGA).meta.pl
rm -f Makefile # previous line means need reconfig
tar cvhf $(TARBALL).tar -C .. $(TARBALL)/Changes
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/configure
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/COPYING
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/README
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/3grams-$(TEANGA).txt
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/aonchiall-$(TEANGA).in
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/comhshuite-$(TEANGA).in
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/earraidi-$(TEANGA).bs
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/eile-$(TEANGA).bs
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/freq-$(TEANGA).txt
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/giorr-$(TEANGA).pre
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/giorr-$(TEANGA).txt
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/lexicon-$(TEANGA).bs
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/macra-$(TEANGA).meta.pl
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/morph-$(TEANGA).txt
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/nocombo-$(TEANGA).txt
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/pos-$(TEANGA).txt
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/rialacha-$(TEANGA).in
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/token-$(TEANGA).in
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/triail.xml
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/unigram-$(TEANGA).pre
tar rvhf $(TARBALL).tar -C .. $(TARBALL)/unigram-$(TEANGA).txt
gzip $(TARBALL).tar
chmod 444 $(TARBALL).tar.gz
rm -f ../$(TARBALL)
replcheck : FORCE
@$(MAKE) perl
@echo "earraidi-$(TEANGA).bs..."
@sed 's/^[^ ]* //; s/$$/\./' earraidi-$(TEANGA).bs | $(PERL) -I $(PERLD)/lib $(PERLD)/scripts/$(SCRIPTNAME) --litriu --iomlan
@echo "eile-$(TEANGA).bs..."
@sed 's/^[^ ]* //; s/$$/\./' eile-$(TEANGA).bs | $(PERL) -I $(PERLD)/lib $(PERLD)/scripts/$(SCRIPTNAME) --litriu --iomlan
counts : FORCE
(cat lexicon-$(TEANGA).bs | wc -l; $(ECHO) '2 / p') | dc
cat eile-$(TEANGA).bs | wc -l
$(EGREP) '^[^#]' comhshuite-$(TEANGA).in | wc -l
$(EGREP) '^[^#]' aonchiall-$(TEANGA).in | wc -l
$(EGREP) '^[^#]' rialacha-$(TEANGA).in | wc -l
$(EGREP) ':OK *$$' rialacha-$(TEANGA).in | wc -l
zipped : perl
(cd $(PERLD); make zipdist)
FORCE :