-
Notifications
You must be signed in to change notification settings - Fork 1
/
js.common.mk
25 lines (15 loc) · 912 Bytes
/
js.common.mk
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
# This is a collection of "must have" targets for JavaScript repositories.
#
# ------------------------------------------------------------------------------
SUPPORT_FIRECLOUD_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))/../..))
include $(SUPPORT_FIRECLOUD_DIR)/repo/mk/generic.common.mk
SF_JS_COMMON_INCLUDES_DEFAULT += \
$(SUPPORT_FIRECLOUD_DIR)/repo/mk/js.deps.npm.mk \
SF_JS_COMMON_INCLUDES = $(filter-out $(SF_INCLUDES_IGNORE), $(SF_JS_COMMON_INCLUDES_DEFAULT))
include $(SF_JS_COMMON_INCLUDES)
# ------------------------------------------------------------------------------
TSC = $(call npm-which,TSC,tsc)
$(foreach VAR,TSC,$(call make-lazy,$(VAR)))
SRC_JS_FILES := $(shell $(FIND_Q_NOSYM) src -type f -name "*.js" -print)
SRC_TS_FILES := $(shell $(FIND_Q_NOSYM) src -type f -name "*.ts" -print)
# ------------------------------------------------------------------------------