Skip to content

Commit

Permalink
pass builddir option in cabal list-bin in all Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lyokha committed Apr 11, 2024
1 parent 1761eb3 commit 6fd0618
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion test/Aggregate/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down
3 changes: 2 additions & 1 deletion test/EDE/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down
3 changes: 2 additions & 1 deletion test/PCRE/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down
3 changes: 2 additions & 1 deletion test/Prometheus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down
3 changes: 2 additions & 1 deletion test/Resolve/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down
3 changes: 2 additions & 1 deletion test/ServiceHookAdaptor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down
3 changes: 2 additions & 1 deletion test/Subrequest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ifeq ($(INPLACE),1)
endif
sed -i 's/\(^package-id \)/--\1/' $(GHCENV)
if ! command -v $(NHMTOOL) >/dev/null; then \
PATH=$$(dirname $$(cabal list-bin $(PKGDISTR))):$$PATH; \
PATH=$$(dirname \
$$(cabal list-bin $(PKGDISTR) --builddir="$(BUILDDIR)")):$$PATH; \
fi; \
$(NHMTOOL) deps $(PKGNAME) -d "$(BUILDDIR)" >> $(GHCENV); \
runhaskell --ghc-arg=-package=base \
Expand Down

0 comments on commit 6fd0618

Please sign in to comment.