Skip to content

Commit

Permalink
replace master Makefile by simple bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
barnex committed May 13, 2013
1 parent 6747bfc commit 92033ff
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 81 deletions.
80 changes: 0 additions & 80 deletions Makefile

This file was deleted.

15 changes: 15 additions & 0 deletions build.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

ln -sf $(pwd)/pre-commit .git/hooks/pre-commit
ln -sf $(pwd)/post-commit .git/hooks/post-commit

PKGS=$(echo code.google.com/p/mx3{,/tools/mx3-convert})
echo compiling $PKGS

(cd cuda && make -j8) || exit 1
go install -v $PKGS || exit 1

#GCCGO='gccgo -gccgoflags \'-static-libgcc -O4 -Ofast -march=native\''
#go install -v -compiler $GCCGO $PKGS
#go install -v -compiler $GCCGO

2 changes: 1 addition & 1 deletion post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Run all unit tests
echo Running unit tests in background
rm test.log -rf
(if (make test >> test.log 2>> test.log); then
(if (./test.bash >> test.log 2>> test.log); then
notify-send "Unit tests passed" 2> /dev/null
exit 0;
else
Expand Down
12 changes: 12 additions & 0 deletions test.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /bin/bash

source ./build.bash

(cd examples && ./build.bash)
(cd test && ./run.bash)

go test -i $(PKGS)
go test $(PKGS)

#go test -i -compiler=$(gccgo) $(PKGS)
#go test -compiler=$(gccgo) $(PKGS)

0 comments on commit 92033ff

Please sign in to comment.