Skip to content

Commit 7427ddf

Browse files
committed
Remove unnecessary environment variable
1 parent 58dcab2 commit 7427ddf

8 files changed

Lines changed: 8 additions & 26 deletions

File tree

tools/make/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ $ make list-pkgs-names
231231
To list all package names under a `@stdlib` descendant directory,
232232

233233
```bash
234-
$ make PACKAGES_DIR=./@stdlib/math/base list-pkgs-names
234+
$ make SRC_DIR=./@stdlib/math/base list-pkgs-names
235235
```
236236

237237
* * *

tools/make/lib/ls/pkgs_addons.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
# VARIABLES #
33

4-
# Define the root directory from which to search for packages:
5-
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6-
74
# Define the path of the executable:
85
LIST_PACKAGE_ADDONS ?= $(TOOLS_PKGS_DIR)/pkgs/addons/bin/cli
96

@@ -18,6 +15,6 @@ LIST_PACKAGE_ADDONS_FLAGS ?=
1815
# This target prints a list of all add-ons.
1916

2017
list-pkgs-addons: $(LIST_PACKAGE_ADDONS) $(NODE_MODULES)
21-
$(QUIET) $(NODE) $(LIST_PACKAGE_ADDONS) $(LIST_PACKAGE_ADDONS_FLAGS) $(PACKAGES_DIR)
18+
$(QUIET) $(NODE) $(LIST_PACKAGE_ADDONS) $(LIST_PACKAGE_ADDONS_FLAGS) $(SRC_DIR)
2219

2320
.PHONY: list-pkgs-addons

tools/make/lib/ls/pkgs_browser_compatible.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
# VARIABLES #
33

4-
# Define the root directory from which to search for packages:
5-
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6-
74
# Define the path of the executable:
85
LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES ?= $(TOOLS_PKGS_DIR)/pkgs/browser-compatible/bin/cli
96

@@ -18,6 +15,6 @@ LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES_FLAGS ?=
1815
# This target prints a list of all packages which are compatible with browser environments.
1916

2017
list-pkgs-browser-compatible: $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES) $(NODE_MODULES)
21-
$(QUIET) $(NODE) $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES) $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES_FLAGS) $(PACKAGES_DIR)
18+
$(QUIET) $(NODE) $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES) $(LIST_BROWSER_COMPATIBLE_PACKAGE_NAMES_FLAGS) $(SRC_DIR)
2219

2320
.PHONY: list-pkgs-browser-compatible

tools/make/lib/ls/pkgs_clis.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
# VARIABLES #
33

4-
# Define the root directory from which to search for packages:
5-
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6-
74
# Define the path of the executable:
85
LIST_PACKAGE_CLIS ?= $(TOOLS_PKGS_DIR)/pkgs/clis/bin/cli
96

@@ -18,6 +15,6 @@ LIST_PACKAGE_CLIS_FLAGS ?=
1815
# This target prints a list of all package command-line interfaces.
1916

2017
list-pkgs-clis: $(LIST_PACKAGE_CLIS) $(NODE_MODULES)
21-
$(QUIET) $(NODE) $(LIST_PACKAGE_CLIS) $(LIST_PACKAGE_CLIS_FLAGS) $(PACKAGES_DIR)
18+
$(QUIET) $(NODE) $(LIST_PACKAGE_CLIS) $(LIST_PACKAGE_CLIS_FLAGS) $(SRC_DIR)
2219

2320
.PHONY: list-pkgs-clis

tools/make/lib/ls/pkgs_names.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
# VARIABLES #
33

4-
# Define the root directory from which to search for packages:
5-
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6-
74
# Define the path of the executable:
85
LIST_PACKAGE_NAMES ?= $(TOOLS_PKGS_DIR)/pkgs/names/bin/cli
96

@@ -18,6 +15,6 @@ LIST_PACKAGE_NAMES_FLAGS ?=
1815
# This target prints a list of all package names.
1916

2017
list-pkgs-names: $(LIST_PACKAGE_NAMES) $(NODE_MODULES)
21-
$(QUIET) $(NODE) $(LIST_PACKAGE_NAMES) $(LIST_PACKAGE_NAMES_FLAGS) $(PACKAGES_DIR)
18+
$(QUIET) $(NODE) $(LIST_PACKAGE_NAMES) $(LIST_PACKAGE_NAMES_FLAGS) $(SRC_DIR)
2219

2320
.PHONY: list-pkgs-names

tools/make/lib/ls/pkgs_namespaces.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
# VARIABLES #
33

4-
# Define the root directory from which to search for packages:
5-
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6-
74
# Define the path of the executable:
85
LIST_PACKAGE_NAMESPACES ?= $(TOOLS_PKGS_DIR)/pkgs/namespaces/bin/cli
96

@@ -18,6 +15,6 @@ LIST_PACKAGE_NAMESPACES_FLAGS ?=
1815
# This target prints a list of all package namespaces.
1916

2017
list-pkgs-namespaces: $(LIST_PACKAGE_NAMESPACES) $(NODE_MODULES)
21-
$(QUIET) $(NODE) $(LIST_PACKAGE_NAMESPACES) $(LIST_PACKAGE_NAMESPACES_FLAGS) $(PACKAGES_DIR)
18+
$(QUIET) $(NODE) $(LIST_PACKAGE_NAMESPACES) $(LIST_PACKAGE_NAMESPACES_FLAGS) $(SRC_DIR)
2219

2320
.PHONY: list-pkgs-namespaces

tools/make/lib/ls/pkgs_tree.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
# VARIABLES #
33

4-
# Define the root directory from which to search for packages:
5-
PACKAGES_DIR ?= $(ROOT_DIR)/lib/node_modules
6-
74
# Define the path of the executable:
85
LIST_PACKAGE_TREE ?= $(TOOLS_PKGS_DIR)/pkgs/tree/bin/cli
96

@@ -18,6 +15,6 @@ LIST_PACKAGE_TREE_FLAGS ?=
1815
# This target prints a list of all packages as a tree.
1916

2017
list-pkgs-tree: $(LIST_PACKAGE_TREE) $(NODE_MODULES)
21-
$(QUIET) $(NODE) $(LIST_PACKAGE_TREE) $(LIST_PACKAGE_TREE_FLAGS) $(PACKAGES_DIR)
18+
$(QUIET) $(NODE) $(LIST_PACKAGE_TREE) $(LIST_PACKAGE_TREE_FLAGS) $(SRC_DIR)
2219

2320
.PHONY: list-pkgs-tree

tools/makie/plugins/makie-list-pkgs-names/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function plugin( dir, cwd ) {
7575
opts.cwd = dir;
7676

7777
args = [];
78-
args.push( 'PACKAGES_DIR='+cwd );
78+
args.push( 'SRC_DIR='+cwd );
7979

8080
// Target:
8181
args.push( 'list-pkgs-names' );

0 commit comments

Comments
 (0)