Skip to content

Commit 2b6f880

Browse files
committed
Separate build step from installation (readding 'all' target)
1 parent 3155893 commit 2b6f880

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rt:
1212

1313
COMPILER=./bin/troupec
1414
compiler:
15-
cd compiler; $(MAKE) build
15+
cd compiler; $(MAKE) all
1616

1717
p2p-tools:
1818
cd p2p-tools; tsc

compiler/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
.PHONY: test
22

3+
all: build install
4+
35
build: VERBOSITY_FLAG =
46
build:
57
stack $(VERBOSITY_FLAG) build $(STACK_OPTS)
6-
mkdir -p ./../bin
7-
stack $(VERBOSITY_FLAG) install $(STACK_OPTS) --local-bin-path ./../bin/
88
build/verbose:
99
$(MAKE) $(MAKE_FLAGS) build VERBOSITY_FLAG="-v"
1010

11+
install: VERBOSITY_FLAG =
12+
install:
13+
$(MAKE) $(MAKE_FLAGS) build
14+
mkdir -p ./../bin
15+
stack $(VERBOSITY_FLAG) install $(STACK_OPTS) --local-bin-path ./../bin/
16+
install/verbose:
17+
$(MAKE) $(MAKE_FLAGS) install VERBOSITY_FLAG="-v"
18+
1119
clean:
1220
rm *.cabal
1321
stack clean --full

0 commit comments

Comments
 (0)