TOPDIR = .. include $(TOPDIR)/rules.mk SUBDIRS = ifneq ($(MAKECMDGOALS), ) ifneq ($(MAKECMDGOALS), all) ifneq ($(MAKECMDGOALS), samples) SUBDIRS = \ Access \ Apply \ Arithm \ Box \ Class \ Convert \ Dir \ Dos \ RF_Stack \ Static \ StdIO \ String \ Table \ Compare \ UniStd \ Vector \ Bit \ Syntax endif endif endif SAMPLES = \ hello \ perm \ perm2 \ perm3 \ iter \ select \ select1 \ select2 \ select3 \ select4 include $(TOPDIR)/samples/samples.mk samples:: $(SAMPLES) ifeq (,$(filter tests check,$(MAKECMDGOALS))) -include $(DEPS) endif