Skip to content

Commit

Permalink
Switching cabal upload -> stack upload
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed May 17, 2018
1 parent 2e14b77 commit 20d6f18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SERVICES ?= $(wildcard amazonka-*)
LIBRARIES ?= core amazonka test $(SERVICES)
FORWARD := sdist upload upload-docs
FORWARD := upload upload-docs

build:
stack build --fast
Expand Down
10 changes: 3 additions & 7 deletions share/library.mk
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
SHELL := /usr/bin/env bash
NAME ?= $(notdir $(CURDIR:a/%=%))
VERSION ?= $(shell sed -n 's/^version: *\(.*\)$$/\1/p' $(NAME).cabal)
SHELL := /usr/bin/env bash
NAME ?= $(notdir $(CURDIR:a/%=%))

default:

sdist:
cabal sdist

upload:
cabal upload dist/$(NAME)-$(VERSION).tar.gz
stack upload .

upload-docs:
PACKAGE=$(NAME) ../script/hackage-documentation

0 comments on commit 20d6f18

Please sign in to comment.