Adds Makefile with helpers
commit918d6cd2ebd1ca0de831e7d7e634ebbb3cee692e
authorDeni Bertovic <deni@denibertovic.com>
dateMon 13 Jul 2015, 14:24 (11 years ago)
parentaa61c02
Makefilenew file+19
@@ -0,0 +1,19 @@
1+.PHONY: test build upload dist configure
2+
3+VERSION ?= $(shell grep "^version:" docker.cabal | cut -d " " -f14)
4+
5+configure:
6+ cabal configure --enable-tests
7+
8+build: configure
9+ cabal build
10+
11+test: build
12+ cabal test --show-details=always
13+
14+dist: build
15+ cabal sdist
16+
17+upload: dist
18+ cabal upload dist/docker-$(VERSION).tar.gz
19+