Skip to content

Instantly share code, notes, and snippets.

@cabo
Created January 30, 2014 13:52
Show Gist options
  • Save cabo/8708736 to your computer and use it in GitHub Desktop.
Save cabo/8708736 to your computer and use it in GitHub Desktop.
portably open a file (PDF etc.) in a Makefile
OPEN=$(word 1, $(wildcard /usr/bin/xdg-open /usr/bin/open /bin/echo))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment