-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (21 loc) · 944 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
MHSDIR=../MicroHs
MHS=$(MHSDIR)/bin/mhs
bin/mcabal: src/MicroCabal/*.hs src/MicroCabal/*/*.hs
@mkdir -p bin
MHSDIR=$(MHSDIR) $(MHS) -isrc -obin/mcabal MicroCabal.Main
bin/gmcabal: src/MicroCabal/*.hs src/MicroCabal/*/*.hs
@mkdir -p bin
ghc -outputdir ghc-out -Wall -Wno-unrecognised-warning-flags -Wno-x-partial --make -isrc -o bin/gmcabal -main-is MicroCabal.Main -package directory -package process MicroCabal.Main
all: bin/gmcabal bin/mcabal
clean:
rm -rf ghc-out bin/* .mhscache
cabal clean
test: bin/mcabal
bin/mcabal parse MicroCabal.cabal
bin/mcabal parse ../MicroHs/MicroHs.cabal
bin/mcabal parse ../MicroHs/cpphssrc/malcolm-wallace-universe/polyparse-1.12/polyparse.cabal
bin/mcabal parse ../MicroHs/cpphssrc/malcolm-wallace-universe/cpphs-1.20.9/cpphs.cabal
bin/mcabal parse ../Hackage/optparse-applicative-0.18.1.0/optparse-applicative.cabal
install: bin/mcabal
@mkdir -p ~/.mcabal/bin
cp bin/mcabal ~/.mcabal/bin