on master help sign in
Revamps Makefile
279ea9bDeni Bertovic
Makefile+7−10
@@ -2,18 +2,15 @@
2
2
3VERSION ?= $(shell grep "^version:" docker.cabal | cut -d " " -f14)
3VERSION ?= $(shell grep "^version:" docker.cabal | cut -d " " -f14)
4
4
5−configure:
5+build:
6− cabal configure --enable-tests
6+ @stack build
7
7
8−build: configure
8+test:
9− cabal build
9+ @stack test
10
10
11−test: build
11+sdist:
12− cabal test --show-details=always
13−
14−dist: build
15− cabal sdist
12+ @stack sdist
16
13
17upload: dist
14upload: dist
18− cabal upload dist/docker-$(VERSION).tar.gz
15+ @stack upload .stack-work/dist/x86_64-linux/Cabal-1.18.1.5/docker-${VERSION}.tar.gz
19
16