-#################### third-party layout is kind of special
-# because we have differents versions and all
-THIRD-PARTY-RESOURCES =
-# ignore variants, use the main symlink third-party/bootstrap
-THIRD-PARTY-RESOURCES += $(shell ls third-party/bootstrap/*/*)
-# just the single js as identified with a symlink
-THIRD-PARTY-RESOURCES += $(shell ls third-party/datatables/js/dataTables.js)
-# likewise
-THIRD-PARTY-RESOURCES += $(shell ls third-party/jquery/js/jquery.js)
-# spin comes in plain or min, + the jquery plugin, and our own settings
-THIRD-PARTY-RESOURCES += $(shell ls third-party/spin/*.js)
-
-thirdparty-js:
- @find $(THIRD-PARTY-RESOURCES) -name '*.js'
-thirdparty-css:
- @find $(THIRD-PARTY-RESOURCES) -name '*.css'
-thirdparty-img:
- @find $(THIRD-PARTY-RESOURCES) -name '*.png'
-
-# we might have any of these as templates - e.g. ./engine/templates/plugin-setenv.js
-# so if there's a /templates/ in the path ignore the file
-other-js: force
- @find . -type f -name '*.js' | egrep -v '/all-(static|templates)/|/third-party/|/templates/'
-other-css: force
- @find . -type f -name '*.css' | egrep -v 'all-(static|templates)/|/third-party/|/templates/'
-other-img: force
- @find . -type f -name '*.png' | egrep -v 'all-(static|templates)/|/third-party/|/templates/'
-
-list-js: thirdparty-js other-js
-list-css: thirdparty-css other-css
-list-img: thirdparty-img other-img
+# This is called from the build with the following variables set
+# (see build/Makefile and target_debian)
+# (.) RPMTARBALL
+# (.) RPMVERSION
+# (.) RPMRELEASE
+# (.) RPMNAME
+DEBVERSION=$(RPMVERSION).$(RPMRELEASE)
+DEBTARBALL=../$(RPMNAME)_$(DEBVERSION).orig.tar.bz2