Skip to content

Commit

Permalink
Fixed path and added publish target
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaakieb committed Jun 4, 2015
1 parent 38f7e8d commit 8559925
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
@@ -1,7 +1,10 @@
default: build

ELM_PATH := ./.cabal-sandbox
PATH := $(ELM_PATH)/bin:$(PATH)

build: Base64.elm Ascii.elm BitList.elm
./.cabal-sandbox/bin/elm-make --yes Base64.elm --output base64.js
elm-make --yes Base64.elm --output base64.js

clean-deps:
rm -rf .cabal-sandbox && rm -rf elm-stuf && rm -f cabal.sandbox.config && rm elm-io.sh
Expand All @@ -10,9 +13,12 @@ clean:
rm -f *.js && rm -rf elm-stuff/build-artifacts

deps:
cabal sandbox init && cabal install -j elm-compiler-0.15 elm-package-0.5 elm-make-0.1.2 && ./.cabal-sandbox/bin/elm-package install --yes && wget -N https://raw.githubusercontent.com/maxsnew/IO/master/elm-io.sh
cabal sandbox init && cabal install -j elm-compiler-0.15 elm-package-0.5 elm-make-0.1.2 && elm-package install --yes && wget -N https://raw.githubusercontent.com/maxsnew/IO/master/elm-io.sh

.PHONY: test

test:
elm-make Test/Main.elm --output Test/raw-test.js && bash elm-io.sh Test/raw-test.js Test/test.js && node Test/test.js

publish:
elm-package publish

0 comments on commit 8559925

Please sign in to comment.