From ef75450af5bbf8a6fc19f09a035bf6aa9fcd0c9d Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 20 Feb 2007 07:24:18 +0000 Subject: [PATCH] Target to build tarball for uploading to byod. --- dawg/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dawg/Makefile diff --git a/dawg/Makefile b/dawg/Makefile new file mode 100644 index 000000000..a57f6f5be --- /dev/null +++ b/dawg/Makefile @@ -0,0 +1,36 @@ +# -*-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: + rm -f $@ + tar cvf $@ ./dict2dawg.cpp ./par.pl ./xloc.pl ./xloc.pm + for dir in $$(ls .); do \ + if [ -f $$dir/info.txt ] && [ -f $$dir/Makefile ]; then \ + (cd $$dir; make TARGET_TYPE=PALM table.bin values.bin palmvalues.bin); \ + (cd $$dir; make TARGET_TYPE=FRANK frankspecials.bin); \ + tar rvf $@ $$dir/table.bin $$dir/values.bin $$dir/palmvalues.bin $$dir/frankspecials.bin $$dir/info.txt; \ + fi \ + done + +clean: + rm -f byodfiles.tgz byodfiles.tar