diff options
| author | EuAndreh <eu@euandre.org> | 2025-07-20 09:43:33 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-07-20 09:43:33 -0300 |
| commit | 6739d6ac8e968efddaa491e9d24d9b6804f3577a (patch) | |
| tree | 0bf333eb615923822f0264430e905bb1aceead5e | |
| parent | src/sjs.mjs: Add reductions() (diff) | |
| download | sjs-6739d6ac8e968efddaa491e9d24d9b6804f3577a.tar.gz sjs-6739d6ac8e968efddaa491e9d24d9b6804f3577a.tar.xz | |
Makefile: Update installation directory to be compatible with node
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile | 13 | ||||
| -rw-r--r-- | package.json | 3 |
3 files changed, 11 insertions, 7 deletions
@@ -1,2 +1,2 @@ -/node_modules/ +/node_modules /src/*.exported.mjs @@ -7,7 +7,7 @@ NAME_UC = $(NAME) PREFIX = /usr BINDIR = $(PREFIX)/bin LIBDIR = $(PREFIX)/lib -JSLIBDIR = $(LIBDIR)/javascript +JSLIBDIR = $(LIBDIR)/node/$(NAME) INCLUDEDIR = $(PREFIX)/include SRCDIR = $(PREFIX)/src/$(NAME) SHAREDIR = $(PREFIX)/share @@ -30,7 +30,7 @@ all: include deps.mk sources = \ - src/$(NAME).mjs \ + src/$(NAME).mjs \ derived-assets = \ @@ -85,11 +85,12 @@ clean: ## ensures that all installable artifacts are crafted beforehand. install: all mkdir -p \ - '$(DESTDIR)$(BINDIR)' \ - '$(DESTDIR)$(JSLIBDIR)' \ + '$(DESTDIR)$(BINDIR)' \ + '$(DESTDIR)$(JSLIBDIR)'/src \ '$(DESTDIR)$(SRCDIR)' \ - cp src/$(NAME).mjs '$(DESTDIR)$(JSLIBDIR)' + cp src/$(NAME).mjs '$(DESTDIR)$(JSLIBDIR)'/src + cp package.json '$(DESTDIR)$(JSLIBDIR)' cp $(sources) '$(DESTDIR)$(SRCDIR)' ## Uninstalls from $(DESTDIR)$(PREFIX). This is a perfect mirror @@ -97,7 +98,7 @@ install: all ## A dedicated test asserts that this is always true. uninstall: rm -rf \ - '$(DESTDIR)$(JSLIBDIR)'/$(NAME).mjs \ + '$(DESTDIR)$(JSLIBDIR)' \ '$(DESTDIR)$(SRCDIR)' \ diff --git a/package.json b/package.json new file mode 100644 index 0000000..7f0f12b --- /dev/null +++ b/package.json @@ -0,0 +1,3 @@ +{ + "main": "src/sjs.mjs" +} |
