-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
40 lines (29 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- Mode: makefile-gmake; indent-tabs-mode: t; tab-width: 2 -*-
# please use tabs (8 width)
################################################################################
# Building
CABAL_INSTALL = cabal install
.PHONY: all
all: cabal-build
# Regular (default) build
cabal-build: .cabal-sandbox
$(CABAL_INSTALL)
# Regression build, requires more packages in the sandbox
regression-build: .cabal-sandbox
$(CABAL_INSTALL) -fregression-flag
.cabal-sandbox: $(MAKEFILE_LIST)
cabal sandbox init
sandbox-clean:
rm -rf cabal.sandbox.config .cabal-sandbox
find . -name "dist" | xargs rm -rf
clean:
@echo "Clean in the top level does not remove your cabal sandbox."
@echo "If you want to remove your cabal sandbox, use the 'sandbox-clean' target"
################################################################################
# Testing/comparing SmartCheck to other test frameworks
.PHONY: regression
regression: regression-build
$(MAKE) all -C regression
.PHONY: regression-clean
regression-clean:
$(MAKE) clean -C regression