[Pkg-javascript-commits] [json-js] 09/18: Tidy rules: Drop variable js-stems.
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 09:48:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository json-js.
commit 36dfa33a579c8920c4e89ddda0282801dba7b0cf
Author: Jonas Smedegaard <dr at jones.dk>
Date: Wed Aug 31 11:32:12 2016 +0200
Tidy rules: Drop variable js-stems.
---
debian/rules | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index 6bff5c9..cfc3f7f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,17 +28,17 @@ CDBS_BUILD_DEPENDS += , uglifyjs
DEB_UPSTREAM_URL = https://github.com/douglascrockford/JSON-js/archive
-js-stems = $(basename $(wildcard *.js))
-js-min = $(js-stems:%=debian/%.min.js)
+js-reg = $(wildcard *.js)
+js-min = $(js-reg:%.js=debian/%.min.js)
js-destdir = /usr/share/javascript/$(libdirname)
-DEB_DH_INSTALL_ARGS_DEFAULT = $(addsuffix .js,$(js-stems)) debian/*.min.js $(js-destdir)
+DEB_DH_INSTALL_ARGS_DEFAULT = $(js-reg) $(js-min) $(js-destdir)
build/$(pkg):: $(js-min)
$(js-min): debian/%.min.js: %.js
uglifyjs -o $@ $<
clean::
- rm -f debian/*.js
+ rm -f $(js-min)
binary-fixup/$(pkg)::
chmod -x $(cdbs_curdestdir)/usr/share/javascript/json/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/json-js.git
More information about the Pkg-javascript-commits
mailing list