Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3204)

Issue 34620043: Simplified the Makefile and the targets. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by pajamallama
Modified:
10 years, 5 months ago
Reviewers:
calamity, Matt Giuca
CC:
jackhou, calamity, Matt Giuca
Base URL:
https://github.com/jackhou-chromium/bitmapper@change_directory_structure
Visibility:
Public.

Description

Simplified the Makefile and the targets. Removes the need to list every source file in the Makefile (it will instead use the contents of app/js/ and test/js). Removes the OUT_* targets, now 'make' will copy app/* and test/* into out/. Compiling now doesn't run gjslint. The lint target is for that purpose. Removing all $@ and $< for readability.

Patch Set 1 #

Total comments: 18

Patch Set 2 : Minor renaming #

Patch Set 3 : Fixing nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -71 lines) Patch
M .gitignore View 1 chunk +1 line, -0 lines 0 comments Download
M Makefile View 1 2 3 chunks +66 lines, -67 lines 0 comments Download
M build/externs.js View 1 chunk +0 lines, -3 lines 0 comments Download
M test/test.html View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
pajamallama
https://codereview.appspot.com/34620043/diff/1/.gitignore File .gitignore (right): https://codereview.appspot.com/34620043/diff/1/.gitignore#newcode3 .gitignore:3: *.swp ignore vim swp files https://codereview.appspot.com/34620043/diff/1/Makefile File Makefile (right): ...
10 years, 5 months ago (2013-11-28 05:02:17 UTC) #1
calamity
Looking good. Hopefully we can get ToT into a fully working state soon. https://codereview.appspot.com/34620043/diff/1/Makefile File ...
10 years, 5 months ago (2013-11-28 06:57:23 UTC) #2
pajamallama
https://codereview.appspot.com/34620043/diff/1/Makefile File Makefile (right): https://codereview.appspot.com/34620043/diff/1/Makefile#newcode8 Makefile:8: CD := $(shell pwd) On 2013/11/28 06:57:24, calamity wrote: ...
10 years, 5 months ago (2013-11-28 07:06:05 UTC) #3
calamity
lgtm with nits. Please update the issue comment as well as some things no longer ...
10 years, 5 months ago (2013-11-28 23:59:50 UTC) #4
pajamallama
10 years, 5 months ago (2013-11-29 00:24:55 UTC) #5
https://codereview.appspot.com/34620043/diff/1/Makefile
File Makefile (right):

https://codereview.appspot.com/34620043/diff/1/Makefile#newcode69
Makefile:69: cp $(APP_DIR)/$(SRC_DIR)/* $(OUT_DIR)/$(TEST_DIR)/$(SRC_DIR)
On 2013/11/28 23:59:50, calamity wrote:
> On 2013/11/28 07:06:05, pajamallama wrote:
> > On 2013/11/28 06:57:24, calamity wrote:
> > > Any reason to use a glob instead of $(TEST_FILES)? Likewise with
everywhere
> > else
> > > that uses globs instead of the equivalent variable.
> > 
> > That way subdirectories are preserved, otherwise app/js/a.js will end up in
> > out/debug/a.js (instead of out/debug/js/a.js).
> 
> Replacing $(APP_DIR)/$(SRC_DIR)/* with $(APP_SRCS) shouldn't affect the output
> directory structure? Using a variable would be more flexible so I'd prefer
that
> if possible.

Done.

https://codereview.appspot.com/34620043/diff/1/Makefile#newcode85
Makefile:85: mkdir $(BUILD_DIR)
On 2013/11/28 23:59:50, calamity wrote:
> On 2013/11/28 07:06:05, pajamallama wrote:
> > On 2013/11/28 06:57:24, calamity wrote:
> > > This needs to stay as mkdir -p. It currently errors because "build" has
> > already
> > > been created
> > 
> > Yeah, this was an error (introduced by severe git-ing), it is fixed in the
> next
> > cl.
> 
> May as well add the -p in this patchset.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b