Skip to content

Commit

Permalink
Add a makefile to build submodule stuff
Browse files Browse the repository at this point in the history
The top-level makefiles in locker and integral can just call this, and
don't need to worry about guessing pathnames and such.
  • Loading branch information
Matt Zimmerman committed Mar 17, 2012
1 parent fe30c1d commit 3a72459
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
js/compiled_templates.js: $(wildcard templates/*.html)
node templates/compile.js $^ > $@

clean:
rm -f js/compiled_templates.js
2 changes: 1 addition & 1 deletion templates/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ for(var i = 2; i < process.argv.length; i++) {
compiled += dust.compile(text, name) + '\n';
}

fs.writeFileSync(__dirname + '/../js/compiled_templates.js', compiled);
process.stdout.write(compiled);
9 changes: 0 additions & 9 deletions templates/compile.sh

This file was deleted.

0 comments on commit 3a72459

Please sign in to comment.