-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
48 lines (35 loc) · 1.18 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# (c) Copyright Levent Erkok. All rights reserved.
#
# The hArduino library is distributed with the BSD3 license. See the LICENSE file
# in the distribution for details.
SHELL := /usr/bin/env bash
TSTSRCS = $(shell find . -name '*.hs' -or -name '*.lhs' | grep -v Setup.hs)
DEPSRCS = $(shell find . -name '*.hs' -or -name '*.lhs' -or -name '*.cabal' | grep -v Paths_hArduino.hs)
CABAL = cabal
TIME = /usr/bin/time
define mkTags
@find . -name \*.\*hs | xargs fast-tags
endef
.PHONY: all install sdist clean docs hlint tags
all: install
install: $(DEPSRCS) Makefile
$(call mkTags)
@$(CABAL) new-install --lib
sdist: install
$(CABAL) sdist
veryclean: clean
clean:
@rm -rf dist-newstyle
docs:
cabal new-haddock --haddock-option=--hyperlinked-source --haddock-option=--no-warnings
release: clean install sdist hlint docs
@echo "*** hArduino is ready for release!"
hlint: install
@echo "Running HLint.."
@hlint System -rhlintReport.html -i "Use otherwise" -i "Parse error"
ghcid:
ghcid --command="cabal new-repl --repl-options=-Wno-unused-packages"
ci:
haskell-ci hArduino.cabal --no-tests --no-benchmarks --no-doctest --no-hlint --email-notifications
tags:
$(call mkTags)