File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22# VARIABLES #
33
4- # Define the command for returning a citation reference :
4+ # Define the command for inserting a link into the database :
55LINKS_INSERT ?= $(NODE ) $(TOOLS_DIR ) /links/create/bin/cli
66
77# Define the command-line options to be used when executing the command:
88LINKS_INSERT_FLAGS ?= \
99 --database $(ROOT_DIR ) /docs/links/database.json
1010
11+ # Define the command for resolving an id from a URI:
12+ LINKS_URI2ID ?= $(NODE ) $(TOOLS_DIR ) /links/uri2id/bin/cli
13+
14+ # Define the command-line options to be used when executing the command:
15+ LINKS_URI2ID_FLAGS ?= \
16+ --database $(ROOT_DIR ) /docs/links/database.json
17+
1118
1219# TARGETS #
1320
@@ -19,3 +26,12 @@ links-insert: $(NODE_MODULES)
1926 $(QUIET ) $(LINKS_INSERT ) $(LINKS_INSERT_FLAGS )
2027
2128.PHONY : links-insert
29+
30+ # Resolve a link id.
31+ #
32+ # This target resolves a database link identifier from a URI.
33+
34+ links-uri2id : $(NODE_MODULES )
35+ $(QUIET ) $(LINKS_URI2ID ) $(LINKS_URI2ID_FLAGS )
36+
37+ .PHONY : links-uri2id
You can’t perform that action at this time.
0 commit comments