1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
dirs := ifeq ($(WITH_BOOST),1) dirs += boost endif ifeq ($(WITH_ACE),1) dirs += cdr endif ifeq ($(WITH_XDR),1) dirs += xdr endif .PHONY: all $(dirs) all: $(dirs) $(dirs): @$(MAKE) -C $@ $(MAKECMDGOALS) makefile: ; % :: $(dirs) ;