2007-02-20 08:24:18 +01:00
|
|
|
# -*-mode: Makefile -*-
|
|
|
|
#
|
|
|
|
# Copyright 2007 by Eric House (xwords@eehouse.org)
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
all: byodfiles.tgz
|
|
|
|
|
|
|
|
byodfiles.tgz: byodfiles.tar
|
|
|
|
gzip -c $< > $@
|
|
|
|
|
|
|
|
byodfiles.tar:
|
2009-01-25 19:48:29 +01:00
|
|
|
rm -f $@ langinfo
|
2007-02-20 08:24:18 +01:00
|
|
|
tar cvf $@ ./dict2dawg.cpp ./par.pl ./xloc.pl ./xloc.pm
|
|
|
|
for dir in $$(ls .); do \
|
|
|
|
if [ -f $$dir/info.txt ] && [ -f $$dir/Makefile ]; then \
|
2009-01-25 19:48:29 +01:00
|
|
|
mkdir -p langinfo/$$dir; \
|
2007-02-20 08:24:18 +01:00
|
|
|
(cd $$dir; make TARGET_TYPE=PALM table.bin values.bin palmvalues.bin); \
|
|
|
|
(cd $$dir; make TARGET_TYPE=FRANK frankspecials.bin); \
|
2009-01-25 19:48:29 +01:00
|
|
|
cp $$dir/table.bin $$dir/values.bin $$dir/palmvalues.bin $$dir/frankspecials.bin $$dir/info.txt langinfo/$$dir; \
|
|
|
|
tar rvf $@ langinfo/$$dir/table.bin langinfo/$$dir/values.bin langinfo/$$dir/palmvalues.bin langinfo/$$dir/frankspecials.bin langinfo/$$dir/info.txt; \
|
2007-02-20 08:24:18 +01:00
|
|
|
fi \
|
|
|
|
done
|
2009-01-25 19:48:29 +01:00
|
|
|
rm -rf langinfo
|
2007-02-20 08:24:18 +01:00
|
|
|
|
|
|
|
clean:
|
2008-01-02 02:44:12 +01:00
|
|
|
rm -f byodfiles.tgz byodfiles.tar dict2dawg
|
|
|
|
|
|
|
|
dict2dawg: dict2dawg.cpp
|
|
|
|
$(CXX) $< -o $@
|
2009-01-13 14:19:15 +01:00
|
|
|
|
|
|
|
PHONY: test
|
|
|
|
|
|
|
|
test:
|
|
|
|
for f in $$(ls); do \
|
|
|
|
test -d $$f || continue; \
|
|
|
|
test -e $$f/Makefile || continue; \
|
|
|
|
(cd $$f && make clean && make); \
|
|
|
|
done \
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo make \# makes byod tarball
|
|
|
|
@echo make test \# builds dicts in a bunch of subdirectories
|