-list-html: force
- @find . -type f -name '*.html'
-list-js: force
- @find . -type f -name '*.js' | grep -v '/all-static/'
-list-css: force
- @find . -type f -name '*.css' | grep -v '/all-static/'
-list-img:
- @find . -type f -name '*.png' | grep -v '/all-static/'
+#################### 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
+
+# having templates in a templates/ subdir is fine most of the time except for plugins
+list-templates: force
+ @find plugins -type f -name '*.html'