Skip to content

Instantly share code, notes, and snippets.

@coryodaniel
Created April 15, 2020 22:30
Show Gist options
  • Select an option

  • Save coryodaniel/b714892af886dbc09824467749fefaf5 to your computer and use it in GitHub Desktop.

Select an option

Save coryodaniel/b714892af886dbc09824467749fefaf5 to your computer and use it in GitHub Desktop.
Make all targets w/ extension
DIAGRAMS:=$(shell ls *.py)
all: clean $(DIAGRAMS)
.PHONY:
clean:
rm -f *.{png,jpg}
.PHONY: $(DIAGRAMS)
$(DIAGRAMS):
python $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment