Initial version
This commit is contained in:
commit
04b878f078
28 changed files with 1771 additions and 0 deletions
33
Makefile
Normal file
33
Makefile
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
.PHONY: default all install watch clean build dist distclean
|
||||
default: all
|
||||
|
||||
all: build
|
||||
|
||||
build: builddir build/annotator
|
||||
|
||||
GHCFLAGS = -iapp -isrc -Wall -outputdir build
|
||||
DESTDIR = ~/.local
|
||||
BINDIR = ${DESTDIR}/bin
|
||||
|
||||
builddir:
|
||||
mkdir -p build
|
||||
|
||||
build/annotator: app/Main.hs src/*.hs
|
||||
ghc --make $(GHCFLAGS) $< -o $@
|
||||
|
||||
watch:
|
||||
@git ls-files src app Makefile | entr make -s build install
|
||||
|
||||
clean:
|
||||
@find . -name "*.hi" -delete
|
||||
@find . -name "*.fix" -delete
|
||||
|
||||
distclean: clean
|
||||
@rm -rf build
|
||||
@rm -rf dist
|
||||
|
||||
install: build/annotator
|
||||
@install -D -t ${BINDIR} $<
|
||||
|
||||
dist: script/makedist
|
||||
@$<
|
||||
Loading…
Add table
Add a link
Reference in a new issue