Permalink
Browse files

Cleaner makefile

  • Loading branch information...
Koen Bok
Koen Bok committed Apr 13, 2013
1 parent d840b70 commit 6da090f38f5d63b6765d7868ae657f89f6fdec7e
Showing with 12 additions and 5 deletions.
  1. +2 −5 Makefile
  2. +10 −0 src/banner.coffee
@@ -4,11 +4,8 @@ build:
make lint
make clean
mkdir -p build
./node_modules/browserify/bin/cmd.js src/init.coffee -o build/framer.build.js
echo "// Framer `git describe --tags` (c) 2013 Koen Bok\n" > build/framer.js
echo "window.FramerVersion = \"`git describe --tags`\";\n\n" >> build/framer.js
cat build/framer.build.js >> build/framer.js
rm build/framer.build.js
./node_modules/coffee-script/bin/coffee src/banner.coffee > build/framer.js
./node_modules/browserify/bin/cmd.js src/init.coffee >> build/framer.js
cp build/framer.js template/framer.js
test:
@@ -0,0 +1,10 @@
{exec} = require "child_process"
exec "git describe --tags", (err, version) ->
version = version.replace "\n", ""
console.log "// Framer #{version} (c) 2013 Koen Bok"
console.log "// https://github.com/koenbok/Framer\n"
console.log "window.FramerVersion = \"#{version}\";\n\n"

0 comments on commit 6da090f

Please sign in to comment.