ROOT_DIR = $(PWD) export MCU := 1c102 MCU += 1c103 PHONY := all PHONY += help PHONY += $(MCU) PHONY += clean all: @echo "make [1c102|1c103|clean|help]" $(MCU): @echo "***************************************************************************" @echo "*" @echo "* Welcome loongson $(@)" @echo "* You will get one file in /home/tftpboot or ./ ." @echo "* This is $(@).bin." @echo "*" @echo "***************************************************************************" make BOARD=$(@) -C build clean make BOARD=$(@) -C build all clean: make -C build clean help: @echo "make [1c102|1c103|clean|help]" .PHONY: $(PHONY)