[Pkg-javascript-commits] [backbone] 08/14: Tidy rules: Drop variable js-stems (there is only one).
Jonas Smedegaard
dr at jones.dk
Tue Aug 30 20:55:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository backbone.
commit e889eaed424c262927a85db757585a947f77aa70
Author: Jonas Smedegaard <dr at jones.dk>
Date: Tue Aug 30 21:54:34 2016 +0200
Tidy rules: Drop variable js-stems (there is only one).
---
debian/rules | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index 52a7209..f71e5fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,9 +21,9 @@ include /usr/share/cdbs/1/rules/debhelper.mk
lib = $(DEB_SOURCE_PACKAGE)
pkg-js = libjs-$(lib)
-js-stems = $(lib)
pkg-node = node-$(lib)
-js-min = $(js-stems:%=debian/%.min.js)
+js-reg = $(lib).js
+js-min = debian/$(lib).min.js
js-nodestem = $(lib)
js-destdir = /usr/share/javascript/$(lib)
node-destdir = /usr/lib/nodejs/$(lib)
@@ -65,12 +65,12 @@ DEB_INSTALL_DOCS_ALL += index.html
DEB_INSTALL_EXAMPLES_$(pkg-js) += examples/*
DEB_DH_INSTALL_ARGS_$(pkg-node) = package.json $(node-destdir)
-DEB_DH_INSTALL_ARGS_$(pkg-js) = $(addsuffix .js,$(js-stems)) debian/*.min.js $(js-destdir)
+DEB_DH_INSTALL_ARGS_$(pkg-js) = $(js-reg) $(js-min) $(js-destdir)
build/$(pkg-js):: $(js-min)
$(js-min): debian/%.min.js: %.js
uglifyjs -o $@ $<
clean::
- rm -f debian/*.js
+ rm -f $(js-min)
DEB_DH_LINK_$(pkg-node) = $(js-destdir)/$(js-nodestem).js $(node-destdir)/index.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list