# Makefile
#
# Top level makefile to build all packages below
#

# Add relative path to Jamroot directory, the debhelper scripts do not accept an absolute path. 
# N.B. The assignment assumes the current working directory equals one of the package subdirectories.
TOP := ../../../..


SUBDIRS := hhi-utftest1
SUBDIRS_DBG := hhi-utftest1-dbg


all: $(SUBDIRS)

all.dbg: $(SUBDIRS_DBG)


$(SUBDIRS):
	cd $@; $(PKG_MAKE_CMD) TOP=$(TOP) BIN_DIR=$(TOP)/$(BIN_DIR) LIB_DIR=$(TOP)/$(LIB_DIR) PKG_SAVE_DIR=$(PKG_SAVE_DIR) all clean


$(SUBDIRS_DBG):
	cd $@; $(PKG_MAKE_CMD) TOP=$(TOP) BIN_DIR=$(TOP)/$(BIN_DIR) LIB_DIR=$(TOP)/$(LIB_DIR) PKG_SAVE_DIR=$(PKG_SAVE_DIR) all clean


.PHONY: all.deb all.deb-dbg $(SUBDIRS) $(SUBDIRS_DBG)


