-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
DEPS ?= core $(wildcard amazonka-*) | ||
SERVICES ?= $(wildcard amazonka-*) | ||
LIBRARIES ?= core amazonka $(SERVICES) | ||
FORWARD := sdist upload | ||
|
||
.PHONY: full-clean | ||
build: | ||
stack build | ||
|
||
test: | ||
stack test amazonka-core | ||
|
||
clean: | ||
stack clean | ||
|
||
define forward | ||
$1: cabal.sandbox.config $$(addprefix $1-,$$(DEPS)) | ||
$1: $$(addprefix $1-,$$(LIBRARIES) | ||
$1-%: | ||
@make -C $$* $1 | ||
.PHONY: $1 | ||
endef | ||
FORWARD := build configure deps install sdist upload clean doc | ||
|
||
$(foreach c,$(FORWARD),$(eval $(call forward, $c))) | ||
full-clean: clean | ||
rm -rf cabal.sandbox.config .cabal-sandbox | ||
.PHONY: $(LIBRARIES) | ||
amazonka: | ||
stack build amazonka | ||
cabal.sandbox.config: | ||
cabal sandbox init | ||
core: | ||
stack build amazonka-core | ||
travis: cabal.sandbox.config | ||
@make -C core test | ||
$(SERVICES): | ||
stack build $@ |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
TOP := .. | ||
|
||
include $(TOP)/share/library.mk | ||
include ../share/library.mk |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,6 @@ DEPS := vendor/botocore | |
MODEL_DIR := model | ||
OUT_DIR := .. | ||
|
||
CABAL_INSTALL_DEFARGS ?= -j \ | ||
--disable-documentation \ | ||
--disable-coverage \ | ||
--enable-profiling | ||
|
||
define version = | ||
$(shell sed -n 's/^version: *\(.*\)$$/\1/p' $(1)) | ||
endef | ||
|
@@ -93,23 +88,15 @@ compile: build | |
$(addprefix --model=,$(addprefix $(MODEL_DIR)/,$(MODELS))) | ||
|
||
build: $(MODEL_DIR) | ||
cabal build $(addprefix -,$(findstring j,$(MAKEFLAGS))) | ||
|
||
include ../share/stackage.mk | ||
|
||
deps: $(DEPS) cabal.sandbox.config # temporary cabal.config | ||
cabal install $(CABAL_INSTALL_DEFARGS) --only-dependencies | ||
stack build | ||
|
||
clean: | ||
cabal clean | ||
rm -rf $(MODEL_DIR) cabal.sandbox.config .cabal-sandbox cabal.config | ||
stack clean | ||
rm -rf $(MODEL_DIR) | ||
|
||
full-clean: clean | ||
rm -rf $(DEPS) | ||
|
||
cabal.sandbox.config: | ||
cabal sandbox init | ||
|
||
vendor/botocore: | ||
git clone [email protected]:boto/botocore $@ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
resolver: nightly-2015-06-17 | ||
flags: {} | ||
packages: | ||
- '.' | ||
flags: {} | ||
packages: ['.'] | ||
extra-deps: | ||
- errors-2.0.0 | ||
- text-regex-replace-0.1.0.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
TOP := ../.. | ||
PARENT := {{ libraryName }} | ||
SHELL := /usr/bin/env bash | ||
|
||
include $(TOP)/share/examples.mk | ||
build: | ||
stack build | ||
|
||
clean: | ||
stack clean |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
TOP := .. | ||
NAME := amazonka-core | ||
VERSION := $(shell sed -n 's/^version: *\(.*\)$$/\1/p' amazonka-core.cabal) | ||
NAME := amazonka-core | ||
|
||
include $(TOP)/share/library.mk | ||
|
||
.PHONY: test | ||
|
||
test: cabal.config.stripped | ||
ln -fs $(CABAL_SANDBOX_CONFIG) cabal.sandbox.config && \ | ||
cabal install --enable-tests --only-dep && \ | ||
cabal configure --enable-tests && \ | ||
cabal build && \ | ||
cabal test | ||
include ../share/library.mk |
This file was deleted.