Skip to content

Instantly share code, notes, and snippets.

@ap
Created February 18, 2009 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ap/66108 to your computer and use it in GitHub Desktop.
Save ap/66108 to your computer and use it in GitHub Desktop.
Polyglot Makefile (embedding a Perl script)
# polyglot Makefile (embedding a Perl script)
output.txt: input.txt Makefile
perl -x Makefile $< > $@
#!/usr/bin/perl
q-ignore:
-;
use strict;
# rest of Perl script;
# must be indented by a single tab;
# do not use blank lines in it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment