-
Notifications
You must be signed in to change notification settings - Fork 7
/
js.common.mk
26 lines (17 loc) · 919 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
26
# This is a collection of "must have" targets for JavaScript repositories.
#
# ------------------------------------------------------------------------------
# NOTE might be enough with core.common.mk
ifndef YP_GENERIC_COMMON_INCLUDES_DEFAULT
$(error Please include generic.common.mk, before including js.common.mk)
endif
YP_JS_COMMON_INCLUDES_DEFAULT += \
$(YP_DIR)/build.mk/js.deps.npm.mk \
YP_JS_COMMON_INCLUDES = $(filter-out $(YP_INCLUDES_IGNORE), $(YP_JS_COMMON_INCLUDES_DEFAULT))
include $(YP_JS_COMMON_INCLUDES)
# ------------------------------------------------------------------------------
TSC = $(call npm-which,TSC,tsc)
$(foreach VAR,TSC,$(call make-lazy-once,$(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)
# ------------------------------------------------------------------------------