forked from timbod7/haskell-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 910 Bytes
/
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
# Use cabal with sandboxes
CABAL=cabal
.cabal-sandbox:
$(CABAL) sandbox init
install: .cabal-sandbox unregister
$(CABAL) install chart/ chart-cairo/ chart-gtk/ chart-diagrams/ chart-simple/
unregister:
-$(CABAL) sandbox hc-pkg unregister Chart-simple
-$(CABAL) sandbox hc-pkg unregister Chart-diagrams
-$(CABAL) sandbox hc-pkg unregister Chart-gtk
-$(CABAL) sandbox hc-pkg unregister Chart-cairo
-$(CABAL) sandbox hc-pkg unregister Chart
clean: unregister
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
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
tests:
$(CABAL) install chart-tests/ --flags="cairo gtk diagrams"