aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2024-12-05 23:34:13 +0000
committerGene Pasquet <dev@etenil.net>2024-12-05 23:34:13 +0000
commitbcbb562397fdfd8a14f1791a6f412d12d43eb5b6 (patch)
tree7e771b1c3da92d05b58566d440a9a00aa24ebb33 /Makefile
parenta1b60d6059da1f9862071f12441d2eb16f0b75e7 (diff)
Improvements, documentation etc.HEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 53ae1ff..b627838 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,25 @@
+CSC ?= csc
+PREFIX ?= /usr/local
+
deepenv: deepenv.scm
- csc -o deepenv deepenv.scm
+ $(CSC) -o deepenv deepenv.scm
dispenv: dispenv.scm
- csc -o dispenv dispenv.scm
+ $(CSC) -o dispenv dispenv.scm
.PHONY: static
static: deepenv.scm
- csc -static -o deepenv.static deepenv.scm
+ $(CSC) -static -o deepenv.static deepenv.scm
.PHONY: clean
clean:
rm -f dispenv deepenv dispenv.link deepenv.link deepenv.static
+
+.PHONY: install
+install:
+ mkdir -p $(PREFIX)/bin
+ install deepenv $(PREFIX)/bin/deepenv
+
+.PHONY: uninstall
+uninstall:
+ rm $(PREFIX)/bin/deepenv