forked from lfe/lfe.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 521 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 521 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PORT ?= 4000
MASTER_NODE ?= dev@localhost
CLIENT_NODE ?= devclient@localhost
LFE_BIN_DIR ?=~/.lfe/lfe/bin
dev: dev/logs
@$(LFE_BIN_DIR)/lfe -sname $(MASTER_NODE) -noshell -- ./dev/server.lfe $(shell pwd) $(PORT)
run:
@make dev
connect:
@echo
@echo "You will now be connecting to your dev webserver in an Erlang shell."
@echo "To switch to LFE, simply run the following:"
@echo " lfe_shell:server()."
@echo
@erl -sname $(CLIENT_NODE) -remsh $(MASTER_NODE)
.PHONY: run dev connect
dev/logs:
mkdir dev/logs