Merge lp:~bac/juju-gui/1078723 into lp:juju-gui/experimental
Proposed by
Brad Crittenden
Status: | Merged |
---|---|
Merged at revision: | 266 |
Proposed branch: | lp:~bac/juju-gui/1078723 |
Merge into: | lp:juju-gui/experimental |
Diff against target: |
81 lines (+41/-0) (has conflicts) 2 files modified
Makefile (+26/-0) bin/merge-files (+15/-0) Text conflict in Makefile Text conflict in bin/merge-files |
To merge this branch: | bzr merge lp:~bac/juju-gui/1078723 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+137991@code.launchpad.net |
Description of the change
Makefile tweaks
Bug 1078723 addressed problems with changes to third party JS not
forcing a remake of the combined JS files. We really only have one
such file now, the others are handled properly, so this branch adds a
dependency on it, creates a THIRD_PARTY_JS symbol in the Makefile to
make it obvious in the future, and does other clean-up.
I tried removing the special-case for bin/generateTem
*is* a JavaScript file) by adding a .js extension. That made most of
the make process work but then the linters blew up. I hastily
retreated.
To post a comment you must log in.
Reviewers: mp+137991_ code.launchpad. net,
Message:
Please take a look.
Description:
Makefile tweaks
Bug 1078723 addressed problems with changes to third party JS not
forcing a remake of the combined JS files. We really only have one
such file now, the others are handled properly, so this branch adds a
dependency on it, creates a THIRD_PARTY_JS symbol in the Makefile to
make it obvious in the future, and does other clean-up.
I tried removing the special-case for bin/generateTem plates (which
*is* a JavaScript file) by adding a .js extension. That made most of
the make process work but then the linters blew up. I hastily
retreated.
https:/ /code.launchpad .net/~bac/ juju-gui/ 1078723/ +merge/ 137991
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6873055/
Affected files:
M Makefile
A [revision details]
M bin/merge-files
Index: Makefile es$$' | grep -Ev -e '^manifest\.json$$' -e '^test/assets/' javascripts/ reconnecting- websocket. js$$' -e '^server.js$$') on)?$$| generateTemplat es$$' | \ javascripts/ reconnecting- websocket. js$$' \ PARTY_JS= app/assets/ javascripts/ reconnecting- websocket. js TARGETS= node_modules/ chai node_modules/ cryptojs node_modules/d3 \ modules/ expect. js node_modules/ express node_modules/ graceful- fs \ modules/ grunt node_modules/jshint node_modules/less \ $(BUILD_ ASSETS_ DIR)/manifest. appcache
=== modified file 'Makefile'
--- Makefile 2012-12-04 17:32:59 +0000
+++ Makefile 2012-12-04 20:48:08 +0000
@@ -1,14 +1,19 @@
# Makefile debugging hack: uncomment the two lines below and make will
tell you
-# more about what is happening. The output generated is of the form
+# more about what is happening. The output generated is of the form
# "FILE:LINE [TARGET (DEPENDENCIES) (NEWER)]" where DEPENDENCIES are all
the
# things TARGET depends on and NEWER are all the files that are newer than
# TARGET. DEPENDENCIES will be colored green and NEWER will be blue.
#
#OLD_SHELL := $(SHELL)
-#SHELL = $(warning [$@ [32m($^) [34m($?)[m ])$(OLD_SHELL)
-
-JSFILES=$(shell bzr ls -RV -k file | grep -E -e '.+\.js(on)?$$|
generateTemplat
-e '^app/assets/
-
+#SHELL = $(warning [$@ [32m($^) [34m($?)[m ])$(OLD_SHELL)
+
+JSFILES=$(shell bzr ls -RV -k file | \
+ grep -E -e '.+\.js(
+ grep -Ev -e '^manifest\.json$$' \
+ -e '^test/assets/' \
+ -e '^app/assets/
+ -e '^server.js$$')
+THIRD_
NODE_
node_
node_
@@ -31,6 +36,8 @@
DATE=$(shell date -u)
APPCACHE=
+show:
+ echo $(JSFILES)
all: build
build/ juju-ui/ templates. js: $(TEMPLATE_TARGETS) bin/generateTem plates GENERATED_ FILES)
@@ -121,7 +128,8 @@
spritegen: $(SPRITE_
$(PRODUCTION_ FILES): node_modules/yui node_modules/ d3/d3.v2. min.js ASSETS_ DIR)/combined- css"
$(JSFILES) \
- bin/merge-files lib/merge-files.js
+ bin/merge-files lib/merge-files.js \
+ $(THIRD_PARTY_JS)
rm -f $(PRODUCTION_FILES)
mkdir -p "$(BUILD_
bin/merge-files
@@ -165,6 +173,7 @@
$(BUILD_ ASSETS_ DIR)/images: $(SPRITE_ SOURCE_ FILES) ASSETS_ DIR)/images
cp -rf app/assets/images $(BUILD_
+ touch $@
$(BUILD_ ASSETS_ DIR)/svgs: $(shell bzr ls -R...