forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinks.mk
More file actions
76 lines (61 loc) · 2.19 KB
/
links.mk
File metadata and controls
76 lines (61 loc) · 2.19 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#/
# @license Apache-2.0
#
# Copyright (c) 2017 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/
# VARIABLES #
# Define the command for inserting a link into the database:
LINKS_INSERT ?= $(NODE) $(TOOLS_PKGS_DIR)/links/create/bin/cli
# Define the command-line options to be used when executing the command:
LINKS_INSERT_FLAGS ?= \
--database $(ROOT_DIR)/docs/links/database.json
# Define the command for resolving an id from a URI:
LINKS_URI2ID ?= $(NODE) $(TOOLS_PKGS_DIR)/links/uri2id/bin/cli
# Define the command-line options to be used when executing the command:
LINKS_URI2ID_FLAGS ?= \
--database $(ROOT_DIR)/docs/links/database.json
# Define the command for resolving a URI from an id:
LINKS_ID2URI ?= $(NODE) $(TOOLS_PKGS_DIR)/links/id2uri/bin/cli
# Define the command-line options to be used when executing the command:
LINKS_ID2URI_FLAGS ?= \
--database $(ROOT_DIR)/docs/links/database.json
# RULES #
#/
# Launches an interactive prompt for creating a link entry in the project's link database.
#
# @example
# make links-insert
#/
links-insert: $(NODE_MODULES)
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LINKS_INSERT) $(LINKS_INSERT_FLAGS)
.PHONY: links-insert
#/
# Launches an interactive prompt for resolving a link identifier in the project's link database from a URI.
#
# @example
# make links-uri2id
#/
links-uri2id: $(NODE_MODULES)
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LINKS_URI2ID) $(LINKS_URI2ID_FLAGS)
.PHONY: links-uri2id
#/
# Launches an interactive prompt for resolving a URI in the project's link database from a link identifier.
#
# @example
# make links-id2uri
#/
links-id2uri: $(NODE_MODULES)
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LINKS_ID2URI) $(LINKS_ID2URI_FLAGS)
.PHONY: links-id2uri