[Pkg-javascript-commits] [json-js] 08/18: Tidy rules: Drop variable js-basedir.
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 09:48:45 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 88b48e76317fb80ff113276041aa2eb742955ae2
Author: Jonas Smedegaard <dr at jones.dk>
Date: Wed Aug 31 11:28:47 2016 +0200
Tidy rules: Drop variable js-basedir.
---
debian/rules | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index 4cb0a74..6bff5c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,15 +28,14 @@ CDBS_BUILD_DEPENDS += , uglifyjs
DEB_UPSTREAM_URL = https://github.com/douglascrockford/JSON-js/archive
-js-basedir =
-js-stems = $(basename $(wildcard $(js-basedir)*.js))
-js-min = $(js-stems:$(js-basedir)%=debian/%.min.js)
+js-stems = $(basename $(wildcard *.js))
+js-min = $(js-stems:%=debian/%.min.js)
js-destdir = /usr/share/javascript/$(libdirname)
DEB_DH_INSTALL_ARGS_DEFAULT = $(addsuffix .js,$(js-stems)) debian/*.min.js $(js-destdir)
build/$(pkg):: $(js-min)
-$(js-min): debian/%.min.js: $(js-basedir)%.js
+$(js-min): debian/%.min.js: %.js
uglifyjs -o $@ $<
clean::
rm -f debian/*.js
--
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