Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 606 Bytes
.PHONY: all clean run plugins $(EXE)
OPA ?= opa
OPA_OPT ?= --js-bypass-syntax jsdoc
RUN_OPT ?= --db-remote:opa_chat localhost:27017 --db-remote:opa_share localhost:27017
MINIMAL_VERSION = 4051
EXE = opa_chat.js
all: $(EXE)
$(EXE): plugins/file/file.opa plugins/file/file.js src/*.opa resources/*
$(OPA) $(OPA_OPT) --minimal-version $(MINIMAL_VERSION) src/*.opa \
plugins/file/file.opa plugins/file/file.js -o $(EXE)
run: all
./$(EXE) $(RUN_OPT) || true ## prevent ugly make error 130 :) ##
clean:
rm -Rf *.opx* *.opp*
rm -Rf *.exe _build _tracks *.log **/#*#
rm -Rf opa_chat_depends opa_chat.js