mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
cleanup makefile
This commit is contained in:
parent
55678337b9
commit
1519350be5
5 changed files with 4 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -5,15 +5,16 @@ build:
|
|||
|
||||
embed:
|
||||
echo "embedding css and js into binary"
|
||||
cp main.go gossa.go
|
||||
perl -pe 's/css_will_be_here/`cat style.css`/ge' -i gossa.go
|
||||
perl -pe 's/js_will_be_here/`cat script.js`/ge' -i gossa.go
|
||||
cp src/main.go gossa.go
|
||||
perl -pe 's/css_will_be_here/`cat src\/style.css`/ge' -i gossa.go
|
||||
perl -pe 's/js_will_be_here/`cat src\/script.js`/ge' -i gossa.go
|
||||
|
||||
run:
|
||||
make build
|
||||
./gossa fixture
|
||||
|
||||
ci:
|
||||
cd src
|
||||
go fmt
|
||||
go vet
|
||||
timeout 5 make run &
|
||||
|
|
|
|||
Loading…
Reference in a new issue