export PATH := $(CURDIR)/tools/gnu:$(PATH) SUBDIRS = tools fw fpga all clean spotless : $(MAKE) local.$@ $(SUBDIRS) goal=$@ .PHONY: $(SUBDIRS) $(SUBDIRS): $(MAKE) -C $@ $(goal) fw: tools fpga: fw local.all: local.clean: rm -f *~ ./\#* \# *.bak local.spotless: local.clean # Programming the FPGA or flash program flash: $(MAKE) -C fpga $@