Skip to content

Instantly share code, notes, and snippets.

@ejohnso49
Created January 4, 2024 06:49
Show Gist options
  • Save ejohnso49/b68cf4e1d936cb105961f74a71d80d2e to your computer and use it in GitHub Desktop.
Save ejohnso49/b68cf4e1d936cb105961f74a71d80d2e to your computer and use it in GitHub Desktop.
Target built when flags change
.PHONY: force
$(TEST_TARGET).flags: force Makefile
$(SILENCE)mkdir -p $(dir $@)
$(SILENCE)echo '$(RAW_FLAGS)' | cmp -s - $@ || echo '$(RAW_FLAGS)' > $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment