[Pkg-javascript-commits] [backbone] 70/97: Simplify rules file.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:56:02 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 6a3692b1492ded114e41db4c817ebe44f0a22a8a
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Nov 26 19:04:04 2012 +0100

    Simplify rules file.
---
 debian/rules | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/debian/rules b/debian/rules
index 89c23c0..8d2df9f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,9 +21,9 @@ include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
 pkg = $(DEB_SOURCE_PACKAGE)
-js-pkgname = libjs-$(pkg)
+jspkg = libjs-$(pkg)
 js-stems = $(pkg)
-node-pkgname = node-$(pkg)
+nodepkg = node-$(pkg)
 
 DEB_UPSTREAM_URL = https://github.com/documentcloud/$(pkg)/archive
 DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_TARBALL_VERSION)
@@ -35,7 +35,7 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^docs/images/.*\.(jpg|png)|debian/(changelog|
 DEB_INSTALL_DOCS_ALL += README.md
 
 CDBS_BUILD_DEPENDS += , coffeescript, node-underscore
-build/$(js-pkgname):: debian/stamp-build
+build/$(jspkg):: debian/stamp-build
 debian/stamp-build:
 	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,coffee test/*.coffee)
 	touch $@
@@ -43,7 +43,7 @@ clean::
 	rm -f debian/stamp-build
 
 DEB_INSTALL_DOCS_ALL += index.html
-DEB_INSTALL_EXAMPLES_$(js-pkgname) += examples/*
+DEB_INSTALL_EXAMPLES_$(jspkg) += examples/*
 
 # Ease backporting (libnode-uglify is tough to backport)
 # TODO: drop fallback-dependency after Squeeze
@@ -60,9 +60,9 @@ js-destdir ?= /usr/share/javascript/$(js-dirname)
 js-compressor ?= uglifyjs
 js-compressor-opts ?= -o $@ $<
 
-DEB_DH_INSTALL_ARGS_$(js-pkgname) = $(addsuffix .js,$(js-stems)) debian/*.min.js $(js-destdir)
+DEB_DH_INSTALL_ARGS_$(jspkg) = $(addsuffix .js,$(js-stems)) debian/*.min.js $(js-destdir)
 
-build/$(js-pkgname):: $(js-min)
+build/$(jspkg):: $(js-min)
 $(js-min): debian/%.min.js: $(js-basedir)%.js
 	$(js-compressor) $(js-compressor-opts)
 clean::
@@ -74,4 +74,4 @@ node-dirname ?= $(pkg)
 js-nodestem ?= $(pkg)
 node-destdir ?= /usr/lib/nodejs/
 
-DEB_DH_LINK_$(node-pkgname) = $(js-destdir)/$(js-nodestem).js $(node-destdir)$(node-dirname).js
+DEB_DH_LINK_$(nodepkg) = $(js-destdir)/$(js-nodestem).js $(node-destdir)$(node-dirname).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