-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 768 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
iced: ## Build the libiced_hs library only
@cargo build
build: ## Build the rust library & haskell bindings
@cabal build all
clean: ## Remove the rust & haskell build artifacts
@cargo clean
@cabal clean
style-hs: ## Format Haskell sources
@cabal-gild --mode=format --io=iced-hs.cabal
@fourmolu -q --mode inplace src
style-rs: ## Format Rust sources
@cargo fmt
style: style-rs style-hs ## Format all sources
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.* ?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
UNAME := $(shell uname)
SHELL := /usr/bin/env bash
ifeq ($(UNAME), Darwin)
PROCS := $(shell sysctl -n hw.logicalcpu)
else
PROCS := $(shell nproc)
endif
.PHONY: all $(MAKECMDGOALS)
.DEFAULT_GOAL := help