######################################################################### # grammer - Makefile # Copyright (C) 2002 Marcello Barnaba # # 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA. # # top level Makefile . . . # include Makefile.inc all: build build: _build banner clean: _clean banner dist: _dist banner _build: @for i in $(SUBDIRS); do \ echo "Building $$i"; \ cd $$i;\ ${MAKE} build; cd ..; \ done @ln -sf src/$(ME) _clean: @for i in $(SUBDIRS); do \ echo "Cleaning $$i"; \ cd $$i;\ ${MAKE} clean; cd ..; \ done @rm -f $(ME) $(ME).tgz _dist: _clean @echo @echo -n "Making distribution tgz into $(ME).tgz . . " @rm -f $(ME).tgz @(cd .. ; tar cfz $(ME).tgz $(ME)) @mv ../$(ME).tgz . @echo "done." @ls -l $(ME).tgz @echo banner: @echo "**************************************************************************" @echo "* send reports, inquiries, etc to vjt@users.sf.net. flames to /dev/null. *" @echo "**************************************************************************"