SUBDIRS=cpp/add cpp/codegen cpp
SUBDIRS+=doc/sample/cpp doc/sample/cpp/contrib doc/sample/mexglx
SUBDIRS+=doc

.PHONY: all clean

all: all-subdirs

clean: clean-subdirs

# Taken from subdirs.mak

.PHONY: all-subdirs clean-subdirs

all-subdirs: 
	@for dir in $(SUBDIRS) ; do \
		(cd $$dir && $(MAKE) $(MARGS) all) || exit 1; \
	done

clean-subdirs:
	@for dir in $(SUBDIRS) ; do \
		(cd $$dir && $(MAKE) $(MARGS) clean) || exit 1; \
	done
