|
|
|
Created:
14 years, 4 months ago by techtonik Modified:
14 years, 3 months ago CC:
codereview-list_googlegroups.com Visibility:
Public. |
DescriptionMake `make` require only one param to run and add 'serve' alias
Patch Set 1 #
Total comments: 5
Patch Set 2 : Fix for tools in PATH #Patch Set 3 : Autodetect most common AppEngine location in ../google_appengine #MessagesTotal messages: 15
http://codereview.appspot.com/5651086/diff/1/Makefile File Makefile (right): http://codereview.appspot.com/5651086/diff/1/Makefile#newcode6 Makefile:6: DEV_APPSERVER?= $(SDK_PATH)/dev_appserver.py This breaks setups where dev_appserver.py (and appcfg.py) is somewhere in $PATH. http://codereview.appspot.com/5651086/diff/1/Makefile#newcode22 Makefile:22: run: serve Do we really need this extra alias?
Sign in to reply to this message.
http://codereview.appspot.com/5651086/diff/1/Makefile File Makefile (right): http://codereview.appspot.com/5651086/diff/1/Makefile#newcode6 Makefile:6: DEV_APPSERVER?= $(SDK_PATH)/dev_appserver.py On 2012/02/13 10:07:01, Andi Albrecht wrote: > This breaks setups where dev_appserver.py (and appcfg.py) is somewhere in $PATH. If I remove '.' from the SDK_PATH, the DEV_APPSERVER will be '/dev_appserver.py'. Do you know a way to output '/' only if SDK_PATH is set in Makefile? http://codereview.appspot.com/5651086/diff/1/Makefile#newcode22 Makefile:22: run: serve On 2012/02/13 10:07:01, Andi Albrecht wrote: > Do we really need this extra alias? I'd rename to 'run', because the task semantically tied to this command is to make Rietveld running, not 'served' or 'serving'. At least that is what I thought of when adding instructions on OpenHatch page.
Sign in to reply to this message.
See the PatchSet no.2 http://codereview.appspot.com/5651086/diff/1/Makefile File Makefile (right): http://codereview.appspot.com/5651086/diff/1/Makefile#newcode6 Makefile:6: DEV_APPSERVER?= $(SDK_PATH)/dev_appserver.py On 2012/02/13 10:12:56, techtonik wrote: > On 2012/02/13 10:07:01, Andi Albrecht wrote: > > This breaks setups where dev_appserver.py (and appcfg.py) is somewhere in > $PATH. > > If I remove '.' from the SDK_PATH, the DEV_APPSERVER will be > '/dev_appserver.py'. Do you know a way to output '/' only if SDK_PATH is set in > Makefile? Done.
Sign in to reply to this message.
LGTM - but I'm not sure if this works for all make implementations.
Sign in to reply to this message.
On 2012/02/13 11:21:02, Andi Albrecht wrote: > LGTM - but I'm not sure if this works for all make implementations. ? I don' mind, lgtm. IMHO I'd prefer it to just look at ../google_appengine by default but that's me.
Sign in to reply to this message.
On Mon, Feb 13, 2012 at 4:50 PM, <maruel@chromium.org> wrote: > On 2012/02/13 11:21:02, Andi Albrecht wrote: >> >> LGTM - but I'm not sure if this works for all make implementations. > > > ? > > I don' mind, lgtm. > IMHO I'd prefer it to just look at ../google_appengine by default but > that's me. me too :) > > http://codereview.appspot.com/5651086/
Sign in to reply to this message.
I prefer to look for ../google_appengine by default too, but can't immediately see [1] the way to provide compatibility for PATH setups except rewriting Makefile with Python. Anyway, committed the current fix. Thanks for review. =) 1. http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_8.ht...
Sign in to reply to this message.
On 2012/02/13 18:57:42, techtonik wrote: > I prefer to look for ../google_appengine by default too, but can't immediately > see [1] the way to provide compatibility for PATH setups except rewriting > Makefile with Python. In general, adding the AppEngine SDK in PATH doesn't make sense for most people. And if all rietveld devs prefer to have SDK_PATH prepopulated, it's probably a good idea to just do it.
Sign in to reply to this message.
On 2012/02/13 19:00:26, M-A wrote: > On 2012/02/13 18:57:42, techtonik wrote: > > I prefer to look for ../google_appengine by default too, but can't immediately > > see [1] the way to provide compatibility for PATH setups except rewriting > > Makefile with Python. > > In general, adding the AppEngine SDK in PATH doesn't make sense for most people. > And if all rietveld devs prefer to have SDK_PATH prepopulated, it's probably a > good idea to just do it. So I'm going to change the default value to ../google_appengine then. Andi? =)
Sign in to reply to this message.
On 2012/02/14 06:09:42, techtonik wrote: > On 2012/02/13 19:00:26, M-A wrote: > > On 2012/02/13 18:57:42, techtonik wrote: > > > I prefer to look for ../google_appengine by default too, but can't > immediately > > > see [1] the way to provide compatibility for PATH setups except rewriting > > > Makefile with Python. > > > > In general, adding the AppEngine SDK in PATH doesn't make sense for most > people. > > And if all rietveld devs prefer to have SDK_PATH prepopulated, it's probably a > > good idea to just do it. > > So I'm going to change the default value to ../google_appengine then. Andi? =) I don't have a special opinion, "../google_appengine" is just where the SDK lives in my setup. But in general I'm fine with how it is now.
Sign in to reply to this message.
Adding comment manuall, because -m upload.py option didn't work. Reopening as I've learned some more Makefile spells. Please, check. The only leftover is the sane error message when SDK is not found.
Sign in to reply to this message.
|
