-
Notifications
You must be signed in to change notification settings - Fork 0
/
BSDmakefile
44 lines (35 loc) · 833 Bytes
/
BSDmakefile
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
# BSDmakefile
.PHONY: all
all:
cabal new-update
cabal new-build
INSTALL_DIR ?= ${HOME}/.local/share
BIN_DIR ?= ${HOME}/.cabal/bin
THEMES += Adwaita
THEMES += hicolor
.PHONY: run
run:
cabal new-run
.PHONY: install
install:
rm -f "${BIN_DIR}/conlecterm"
cabal new-install conlecterm
install -d "${INSTALL_DIR}/applications"
install conlecterm.desktop ${INSTALL_DIR}/applications
.for t in ${THEMES}
install -d "${INSTALL_DIR}/icons/${t}/scalable/apps"
install conlecterm.svg "${INSTALL_DIR}/icons/${t}/scalable/apps"
.endfor
.PHONY: clean
clean:
rm -fr dist dist-newstyle
# information for updating the FreeBSD port x11/conlecterm
.PHONY: tuple
tuple:
cabal2tuple dist-newstyle/cache/plan.json
.PHONY: emacs-1
emacs-1:
cabal new-run conlecterm -- -c . -v
.PHONY: emacs-2
emacs-2:
cabal new-run conlecterm -- -c .