#! gmake # Build all the plugins ################################################################################ DIRS= LOOP_OVER_DIRS = \ @for d in $(DIRS); do \ if test -d $$d; then \ set -e; \ echo "$(MAKE) -C $$d $@"; \ $(MAKE) -C $$d $@; \ set +e; \ else \ echo "Skipping non-directory $$d..."; \ fi; \ done ################################################################################ # These should be fairly xp, but may require extra library # commented ones are not yet ready [may crash or fail to compile] DIRS+= tools DIRS+= wp all:: build build:: @echo About to build all plugins. +$(LOOP_OVER_DIRS) @echo Finished building all plugins.