-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate stack; add wrapper Makefile. (#1673)
I like cabal better than stack nowadays, but 'cabal install' is just so awkward. So now we have a Makefile frontend!
- Loading branch information
Showing
7 changed files
with
97 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This Makefile mostly serves to abbreviate build commands that are | ||
# unnecessarily obtuse or longwinded. It depends on the underlying | ||
# build tool (cabal) to actually do anything incrementally. | ||
# Configuration is mostly read from cabal.project. | ||
|
||
PREFIX?=$(HOME)/.local | ||
|
||
.PHONY: build install docs clean | ||
|
||
all: build | ||
|
||
configure: | ||
cabal update | ||
cabal configure | ||
|
||
build: | ||
cabal build | ||
|
||
install: build | ||
install -D $$(cabal -v0 list-bin futhark:futhark) $(PREFIX)/bin | ||
|
||
docs: | ||
cabal haddock --enable-documentation | ||
|
||
check: | ||
tools/style-check.sh src unittests | ||
|
||
check-commit: | ||
tools/style-check.sh $$(git diff-index --cached --name-status HEAD | awk '$$1 != "D" && /\\.l?hsc?$$/ { print $$2 }') | ||
|
||
clean: | ||
cabal clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters