#
#       Copyright (C) 1996-1997 Claus-Justus Heine.
#
# 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, 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; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Source: /homes/cvs/ftape-stacked/Makefile,v $
# $Revision: 1.28 $
# $Date: 1997/10/05 19:17:31 $
#
#      Makefile for the QIC-40/80/3010/3020 floppy-tape driver for
#      Linux.
#
#
# The configuration section is now in the MCONFIG file.
#
TOPDIR=.
#
# all other configuration is in $(TOPDIR)/MCONFIG:
#
include $(TOPDIR)/MCONFIG

SUBDIRS = ftape contrib Doc

default: all

doc: Doc

$(SUBDIRS):
	make -C $@ all

all::
	for i in $(SUBDIRS) ; do make -C $$i $@ ; done

install uninstall::
	for i in $(SUBDIRS) ; do make -C $$i NODEP=true $@ ; done

install::
	/sbin/depmod -a
	$(SHELL) ./contrib/scripts/MAKEDEV.ftape

uninstall::
	-rmdir $(DOCDIR)
	/sbin/depmod -a

clean realclean:
	for i in $(SUBDIRS) ; do make -C $$i NODEP=true $@ ; done

distclean: realclean
	find . -name \*~ -exec rm -f \{\} \;

.PHONY: all doc $(SUBDIRS) install uninstall \
	clean realclean distclean tags
