forked from timbod7/haskell-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.49 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
41
42
43
44
45
46
47
48
49
install: cabal.sandbox.config
cabal install --dependencies-only
cabal.sandbox.config:
cabal sandbox init
cabal install gtk2hs-buildtools
PATH=.cabal-sandbox/bin:$$PATH cabal install gtk
cabal sandbox add-source chart
cabal sandbox add-source chart-cairo
cabal sandbox add-source chart-gtk
cabal sandbox add-source chart-diagrams
cabal sandbox add-source chart-simple
clean:
cd chart && cabal clean
cd chart-cairo && cabal clean
cd chart-gtk && cabal clean
cd chart-diagrams && cabal clean
cd chart-simple && cabal clean
cd chart-tests && cabal clean
clean-sandbox: clean
rm -rf cabal.sandbox.config .cabal-sandbox
rm -f chart-tests/cabal.sandbox.config
sdist:
cd chart && cabal sdist
cd chart-cairo && cabal sdist
cd chart-gtk && cabal sdist
cd chart-diagrams && cabal sdist
cd chart-simple && cabal sdist
# define environment variable CHART_VERSION
# before making upload
upload:
cd chart && cabal upload dist/Chart-$(CHART_VERSION).tar.gz
cd chart-cairo && cabal upload dist/Chart-cairo-$(CHART_VERSION).tar.gz
cd chart-gtk && cabal upload dist/Chart-gtk-$(CHART_VERSION).tar.gz
cd chart-diagrams && cabal upload dist/Chart-diagrams-$(CHART_VERSION).tar.gz
cd chart-simple && cabal upload dist/Chart-simple-$(CHART_VERSION).tar.gz
chart-tests/cabal.sandbox.config:
cd chart-tests && cabal sandbox init --sandbox ../.cabal-sandbox
tests: chart-tests/cabal.sandbox.config
cd chart-tests && cabal install --dependencies-only
cd chart-tests && cabal install --flags="cairo gtk diagrams"