CUR_REL_PATH := "base/include"

include ../../config.mk

INST_INCLUDES = *.h copyleft.C copyright.c ThreadUnsafe.txt

SUBDIRS := embhw

all      \
depend   \
clean:
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

install: $(IRIS_INCLUDE)
	install -m 0664 -o $(IRIS_USER) -g $(IRIS_GROUP) $(INST_INCLUDES) $(IRIS_INCLUDE)
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

test:
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

uninstall:
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)
	if [ -d $(IRIS_INCLUDE) ]; then \
		cd $(IRIS_INCLUDE) && rm -f $(INST_INCLUDES); fi
