# Copyright 2000-2002 by Eric House
#
# 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:
	@ echo "Run make inside one of the platform/target directories"

tarball:
	tar cvfhz xwords4.tgz $$(find . -name '*.c' -print \
		-o -name '*.h' -print \
		-o -name Makefile -print \
		-o -name '*.xpm' -print \
		-o -name '*.pre' -print \
		-o -name '*.mk' -print \
		-o -name '*.bmp' -print \
		-o -name '*.sh' -print \
		-o -name '*.html' -print \
		-o -name '*.gif' -print \
		-o -name '*.pl' -print \
		-o -name '*.ppm' -print \
		-o -name '*.guts' -print \
	)

tags:
	etags $$(find . -name '*.c' -print -o -name '*.cpp' -print \
		 -o -name '*.h' -print)

tags-palm:
	etags $$(find ./palm -name '*.c' -print -o -name '*.cpp' -print \
		 -o -name '*.h' -print)
	etags -a $$(find ./common -name '*.c' -print -o -name '*.cpp' -print \
		 -o -name '*.h' -print)

clean:
	@echo "try cleanall"

cleanall: 
	for dir in ./linux ./franklin ./palm; do \
		(cd $$dir && $(MAKE) clean); \
	done
	rm -rf TAGS

