Skip to content

Commit 0d99db0

Browse files
committed
Fix makefile for new project structure
1 parent b9969be commit 0d99db0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ SHARE_PROJECT_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
44
export SHARE_PROJECT_ROOT
55
UNAME := $(shell uname)
66
STACK_FLAGS := "--fast"
7-
dist_dir := $(shell stack path | awk '/^dist-dir/{print $$2}')
87
exe_name := share-api
9-
exe := $(dist_dir)/build/$(exe_name)/$(exe_name)
8+
exe := $(shell stack exec -- which $(exe_name))
109
target_dir := docker/tmp
1110
installed_share := $(target_dir)/$(exe_name)
1211
unison := $(shell command -v unison)

0 commit comments

Comments
 (0)