-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.sample
52 lines (40 loc) · 1.89 KB
/
Makefile.sample
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
45
46
47
48
49
50
51
52
###################################################################################################
# setup jakets and basic tools
#
CURRENT_DIR := $(subst //,,$(dir $(lastword $(MAKEFILE_LIST)))/)
SEARCH_JAKETS__DIRS += ./node_modules/jakets
# SEARCH_JAKETS__DIRS += $(CURRENT_DIR)/node_modules/jakets
JAKETS__MAKEFILES = $(patsubst %,%/Makefile,$(SEARCH_JAKETS__DIRS))
JAKETS__MAKEFILE = $(word 1, $(wildcard $(JAKETS__MAKEFILES)))
ifeq ("$(JAKETS__MAKEFILE)","")
ifneq ("$(shell npm --version 2> /dev/null)", "")
$(info found npm)
CMD_OUT += $(shell npm update --no-save)
endif
endif
JAKETS__MAKEFILE = $(word 1, $(wildcard $(JAKETS__MAKEFILES)))
ifeq ("$(JAKETS__MAKEFILE)","")
JAKETS__MAKEFILE = $(lastword $(JAKETS__MAKEFILES))
JAKETS__DIR = $(dir $(JAKETS__MAKEFILE))
CMD_OUT += $(shell mkdir -p $(JAKETS__DIR) )
CMD_OUT += $(shell wget -q -O - https://api.github.com/repos/reshadi/jakets/tarball/v5.x.x | tar xvz -C $(JAKETS__DIR) --strip-components=1 )
# CMD_OUT := $(shell git clone --depth 1 --branch dev https://github.com/reshadi/jakets.git $(JAKETS__DIR) )
# CMD_OUT := $(shell curl https://raw.githubusercontent.com/reshadi/jakets/v5.x.x/Makefile --create-dirs -o $(JAKETS__MAKEFILE) )
$(info $(CMD_OUT))
endif
$(info JAKETS__DIR="$(dir $(JAKETS__MAKEFILE))")
$(info JAKETS__MAKEFILE="$(JAKETS__MAKEFILE)" )
$(info JAKETS__MAKEFILE="$(abspath $(JAKETS__MAKEFILE))")
$(info JAKETS__MAKEFILE="$(realpath $(JAKETS__MAKEFILE))")
JAKE_TASKS += debug release
LOG_LEVEL?=0
NODE__DIR?=./build/nodejs
EXPECTED_NODE_VERSION=v8.4.0
include $(JAKETS__MAKEFILE)
#
###################################################################################################
###################################################################################################
# optional custom rules
#
#
####################################################################################################