Skip to content

Instantly share code, notes, and snippets.

@virajkulkarni14
Forked from MarkTiedemann/Makefile
Created May 27, 2020 07:18
Show Gist options
  • Save virajkulkarni14/91c9eee89e9c2bb1b503abef692a4ead to your computer and use it in GitHub Desktop.
Save virajkulkarni14/91c9eee89e9c2bb1b503abef692a4ead to your computer and use it in GitHub Desktop.
the-lost-art-of-the-makefile/01-your-tests-dont-need-to-be-phony/06
.PHONY: test
test: good.tested bad.tested
good.tested: ndjson_validator.js good.ndjson
node ndjson_validator.js < good.ndjson
touch good.tested
bad.tested: ndjson_validator.js bad.ndjson
! node ndjson_validator.js < bad.ndjson
touch bad.tested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment