The Go Blog

passing arguments from Makefile

bantana
23 March 2020

Makefile:

run: all
    $(BUILD_DIR)/$(TARGET) $(ARGS)

Command:

make run ARGS='arg1 arg2 arg3'

equal:

$(BUILD_DIR)/$(TARGET) arg1 arg2 arg3