[Pkg-javascript-commits] [node-async] 19/26: Tidy rules.
Jonas Smedegaard
dr at jones.dk
Sun Jan 7 17:19:56 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.8.0-2
in repository node-async.
commit 0419ea9ecab0febf12a4c88c6610538f199a7ffa
Author: Jonas Smedegaard <dr at jones.dk>
Date: Sun Jan 7 17:22:28 2018 +0100
Tidy rules.
---
debian/rules | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/debian/rules b/debian/rules
index 54f0edc..62db5f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,19 +22,15 @@ include /usr/share/cdbs/1/rules/debhelper.mk
lib = $(patsubst node-%,%,$(DEB_SOURCE_PACKAGE))
pkg-js = libjs-$(lib)
pkg-node = node-$(lib)
-
-DEB_INSTALL_DOCS_ALL += README.md
-
-# TODO: generalize (at least non-node) parts below as a CDBS snippet
-
js-basedir = lib/
#js-stems = $(basename $(wildcard $(js-basedir)*.js))
js-stems = $(lib)
js-min = $(js-stems:%=debian/%.min.js)
js-destdir = /usr/share/javascript/$(lib)
-
node-destdir = /usr/lib/nodejs/$(lib)
+DEB_INSTALL_DOCS_ALL += README.md
+
DEB_DH_INSTALL_ARGS_$(pkg-js) = $(js-stems:%=$(js-basedir)%.js) debian/*.min.js $(js-destdir)
DEB_DH_INSTALL_ARGS_$(pkg-node) = package.json $(node-destdir)
DEB_DH_LINK_$(pkg-node) = $(js-destdir)/$(lib).js $(node-destdir)/index.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git
More information about the Pkg-javascript-commits
mailing list