forked from joxa/joxa
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (25 loc) · 778 Bytes
/
Makefile
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
VSN=0.1.0
ERL=$(shell which erl)
ERLC=$(shell which erlc)
REBAR=$(shell which rebar)
CURDIR=$(shell [ -n "$$CURDIR" ] && echo "$$CURDIR" || echo `pwd`)
ifeq ($(REBAR),)
$(error "Rebar not available on this system")
endif
# Project Directories (local to $(CURDIR))
SRCDIR=$(abspath $(CURDIR)/src)
TESTDIR=$(abspath $(CURDIR)/test)
PRIVDIR=$(abspath $(CURDIR)/priv)
# Build Directories In Build
APPDIR=$(CURDIR)
BEAMDIR=$(APPDIR)/ebin
# Bootstrap Directories In Build
JOXA_BOOTSTRAP_DIR=$(abspath .bootstrap)
# Location of the support makefiles
BUILD_SUPPORT=$(CURDIR)/build-support
.SUFFIXES:
.SUFFIXES:.jxa
include $(abspath $(BUILD_SUPPORT)/core-build.mkf)
include $(abspath $(BUILD_SUPPORT)/doc.mkf)
clean: jxa-clean doc-clean
distclean: jxa-distclean doc-distclean