include Makefile.defs
TCLKIT = tclkit
TCLCONFIGPATH = $(DESTDIR)/$(prefix)/lib $(DESTDIR)/$(prefix)/lib64 $(DESTDIR)/usr/lib $(DESTDIR)/usr/lib64 $(DESTDIR)/usr/local/lib $(DESTDIR)/usr/local/lib64
TEAPOTCLIENTVERS = 0.1
TCLDIR = 
PREFIX = /usr/local
prefix = $(PREFIX)

all:
	$(MAKE) -C client all

client/teapot-client.kit:
	$(MAKE) -C client teapot-client.kit TCLKIT="$(TCLKIT)" TCLCONFIGPATH="$(TCLCONFIGPATH)" TEAPOTCLIENTVERS="$(TEAPOTCLIENTVERS)" TCLDIR="$(TCLDIR)" PREFIX="$(PREFIX)" prefix="$(prefix)"

install:
	$(MAKE) -C client install TCLKIT="$(TCLKIT)" TCLCONFIGPATH="$(TCLCONFIGPATH)" TEAPOTCLIENTVERS="$(TEAPOTCLIENTVERS)" TCLDIR="$(TCLDIR)" PREFIX="$(PREFIX)" prefix="$(prefix)"

clean:
	$(MAKE) -C client clean
	$(MAKE) -C server/buildpkgs clean

distclean:
	$(MAKE) -C client distclean
	$(MAKE) -C server/buildpkgs distclean

.PHONY: all install clean distclean
