Created
February 28, 2023 14:47
-
-
Save brutus/7abd3161dc7d1249710dab2b9eb2f6e1 to your computer and use it in GitHub Desktop.
Makefile & Stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include ARGS dynamically | |
ifeq (run,$(firstword $(MAKECMDGOALS))) | |
# use the rest as arguments for "run" | |
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | |
# ...and turn them into do-nothing targets | |
$(eval $(RUN_ARGS):;@:) | |
endif | |
# handle ENV file | |
include .envfile | |
export $(shell sed 's/=.*//' \.envfile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment