add a "most" target, and make it the default

split out of https://codereview.appspot.com/6651064/ ('gyp: generate "everything" and "most" targets instead of "all"')
tests: "make most" now works, "make" now calls "make most"
Review URL: https://codereview.appspot.com/6740045

git-svn-id: http://skia.googlecode.com/svn/trunk@5999 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/make.py b/make.py
index 1e0b7e7..03421fe 100644
--- a/make.py
+++ b/make.py
@@ -4,7 +4,7 @@
 # found in the LICENSE file.

 

 # "Makefile" replacement to build skia for Windows.

-# More info at http://code.google.com/p/skia/wiki/DocRoot

+# More info at https://sites.google.com/site/skiadocs/

 #

 # Some usage examples:

 #   make clean

@@ -20,9 +20,10 @@
 BUILDTYPE = 'Debug'

 

 # special targets

-TARGET_ALL = 'all'

-TARGET_CLEAN = 'clean'

-TARGET_GYP = 'gyp'

+TARGET_ALL     = 'all'

+TARGET_CLEAN   = 'clean'

+TARGET_DEFAULT = 'most'

+TARGET_GYP     = 'gyp'

 LIST_OF_ALL_TARGETS = ['SampleApp', 'bench', 'gm', 'tests', 'tools']

 

 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))

@@ -133,6 +134,11 @@
     """

     # handle any variable-setting parameters or special targets

     global BUILDTYPE

+

+    # if no targets were specified at all, make default target

+    if not args:

+        args = [TARGET_DEFAULT]

+

     targets = []

     for arg in args:

         if arg == TARGET_ALL:

@@ -157,19 +163,19 @@
     elif os.name == 'posix':

         if sys.platform == 'darwin':

             print 'Mac developers should not run this script; see ' \

-                'http://code.google.com/p/skia/wiki/GettingStartedOnMac'

+                'https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/mac'

             sys.exit(1)

         elif sys.platform == 'cygwin':

-            print 'Windows development on Cygwin is not currently supported; ' \

-                'see http://code.google.com/p/skia/wiki/GettingStartedOnWindows'

+            print 'Windows development on Cygwin is not currently supported; see ' \

+                'https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/windows'

             sys.exit(1)

         else:

             print 'Unix developers should not run this script; see ' \

-                'http://code.google.com/p/skia/wiki/GettingStartedOnLinux'

+                'https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/linux'

             sys.exit(1)

     else:

         print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % (

-            os.name, sys.platform, 'http://code.google.com/p/skia/wiki/DocRoot')

+            os.name, sys.platform, 'https://sites.google.com/site/skiadocs/')

         sys.exit(1)

     sys.exit(0)