Skip to content

Commit bded471

Browse files
authored
Merge pull request #75 from ssoelvsten/fork/dev/make
More makefile cleanup / shenanigans
2 parents 783edf8 + 5bc2568 commit bded471

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

compiler/Makefile

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
.PHONY: test
22

3-
all:
4-
stack -v build $(STACK_OPTS)
3+
all: build install
4+
5+
build: VERBOSITY_FLAG =
6+
build:
7+
stack $(VERBOSITY_FLAG) build $(STACK_OPTS)
8+
build/verbose:
9+
$(MAKE) $(MAKE_FLAGS) build VERBOSITY_FLAG="-v"
10+
11+
install: VERBOSITY_FLAG =
12+
install:
13+
$(MAKE) $(MAKE_FLAGS) build
514
mkdir -p ./../bin
6-
stack -v install $(STACK_OPTS) --local-bin-path ./../bin/
15+
stack $(VERBOSITY_FLAG) install $(STACK_OPTS) --local-bin-path ./../bin/
16+
install/verbose:
17+
$(MAKE) $(MAKE_FLAGS) install VERBOSITY_FLAG="-v"
718

819
clean:
920
rm *.cabal
1021
stack clean --full
1122
rm -rf ../bin
1223
# If problems still persist after this, remove all GHC compilers in ~/.stack/programs/**/
1324

14-
ghci-irtester:
15-
stack ghci --main-is Troupe-compiler:exe:irtester --no-load
16-
17-
ghci-troupec:
18-
stack ghci --main-is Troupe-compiler:exe:troupec --no-load
19-
2025
test:
2126
stack test $(STACK_OPTS)
2227

2328
parser-info:
2429
stack exec happy -- -i src/Parser.y
30+
31+
ghci/irtester:
32+
stack ghci --main-is Troupe-compiler:exe:irtester --no-load
33+
34+
ghci/troupec:
35+
stack ghci --main-is Troupe-compiler:exe:troupec --no-load

0 commit comments

Comments
 (0)