# 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-package
#SUBDIRS_DBG := hhi-package-dbg


all: $(SUBDIRS)

all.dbg:
	@true

#all.deb-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 $@; ./debian/rules TOP=$(TOP) BIN_DIR=$(TOP)/$(BIN_DIR) PKG_SAVE_DIR=$(PKG_SAVE_DIR) all clean


#.PHONY: all all.dbg $(SUBDIRS) $(SUBDIRS_DBG)
.PHONY: all all.dbg $(SUBDIRS)


