[Pkg-javascript-commits] [backbone] 27/97: Tighten build rule to avoid superfluous multiple builds.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:55:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository backbone.

commit 2cc13f44db98be13df6d6ac91852fc1df3b4bd9d
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sat Aug 20 19:16:20 2011 +0200

    Tighten build rule to avoid superfluous multiple builds.
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index d29607b..9b34ce8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,7 +40,12 @@ DEB_INSTALL_EXAMPLES_libjs-backbone += examples/*
 CDBS_BUILD_DEPENDS += , libnode-uglify | yui-compressor
 js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
 
-build/libjs-backbone::
-	$(js-compressor) backbone.js -o debian/backbone.min.js
+js-pkgname = libjs-backbone
+js-stems = backbone
+js-min = $(js-stems:%=debian/%.min.js)
+
+build/$(js-pkgname):: $(js-min)
+$(js-min): debian/%.min.js: $(js-basedir)%.js
+	$(js-compressor) -o $@ $<
 clean::
 	rm -f debian/*.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