#
# Szymon Rusinkiewicz
#
# Makefile
# This is the top level Makefile for bv and friends
#
include Makedefs
#
THISDIR = $(shell basename $(CWD))
TARFILE = $(THISDIR).tar.gz

SUBDIRS = brdf bv_brdf_panels bv

all depend clean:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done

tar:
	rm -f ../$(TARFILE)
	cd .. && $(TAR) -z --exclude .old -f $(TARFILE) -c $(THISDIR)

tar_all:
	rm -f ../$(TARFILE)
	cd .. && $(TAR) -z -f $(TARFILE) -c $(THISDIR)
