fix: make run args
This commit is contained in:
@@ -11,8 +11,15 @@ build:
|
|||||||
test:
|
test:
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
|
# To pass arguments that start with -, use -- to separate make flags from app flags
|
||||||
|
# Example: make run -- --time 15:00
|
||||||
|
# Example: make run -- --tz +1000
|
||||||
run:
|
run:
|
||||||
go run $(CMD_PATH) $(args)
|
@go run $(CMD_PATH) $(filter-out $@,$(MAKECMDGOALS))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIR)
|
rm -rf $(BUILD_DIR)
|
||||||
|
|
||||||
|
# Catch-all rule to prevent make from complaining about unknown targets (the args)
|
||||||
|
%:
|
||||||
|
@:
|
||||||
|
|||||||
Reference in New Issue
Block a user