Ticket #11158: 0001-Template-Makefile-fix-wording-rewrap-bump-version-ca.patch
File 0001-Template-Makefile-fix-wording-rewrap-bump-version-ca.patch, 23.4 KB (added by , 10 years ago) |
---|
-
build/jam/packages/MakefileEngine
From d7f8c14073b0ddf79f261366e667f0f15ce5a49b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier <waddlesplash@gmail.com> Date: Sun, 24 Aug 2014 16:23:46 -0400 Subject: [PATCH] Template Makefile: fix wording, rewrap, bump version, capitalize name. --- build/jam/packages/MakefileEngine | 2 +- data/develop/Makefile | 128 ++++++++++++++++++++ data/develop/makefile | 145 ----------------------- src/data/package_infos/any/makefile_engine | 6 +- src/data/settings/tracker_new_templates/Jamfile | 2 +- src/data/settings/tracker_new_templates/Makefile | 128 ++++++++++++++++++++ src/data/settings/tracker_new_templates/makefile | 145 ----------------------- 7 files changed, 261 insertions(+), 295 deletions(-) create mode 100644 data/develop/Makefile delete mode 100644 data/develop/makefile create mode 100644 src/data/settings/tracker_new_templates/Makefile delete mode 100644 src/data/settings/tracker_new_templates/makefile diff --git a/build/jam/packages/MakefileEngine b/build/jam/packages/MakefileEngine index cd3b7ce..917989c 100644
a b HaikuPackage $(makefileEnginePackage) ; 3 3 4 4 # skeleton makefile and makefile-engine 5 5 local makefileEngineFiles = 6 <makefile-engine> makefile6 <makefile-engine>Makefile 7 7 <makefile-engine>makefile-engine 8 8 ; 9 9 SEARCH on $(makefileEngineFiles) = [ FDirName $(HAIKU_TOP) data develop ] ; -
new file data/develop/Makefile
diff --git a/data/develop/Makefile b/data/develop/Makefile new file mode 100644 index 0000000..006a617
- + 1 ## Haiku Generic Makefile v2.6 ## 2 3 ## Fill in this file to specify the project being created, and the referenced 4 ## Makefile-Engine will do all of the hard work for you. This handles any 5 ## architecture of Haiku. 6 7 # The name of the binary. 8 NAME = 9 10 # The type of binary, must be one of: 11 # APP: Application 12 # SHARED: Shared library or add-on 13 # STATIC: Static library archive 14 # DRIVER: Kernel driver 15 TYPE = 16 17 # If you plan to use localization, specify the application's MIME signature. 18 APP_MIME_SIG = 19 20 # The following lines tell Pe and Eddie where the SRCS, RDEFS, and RSRCS are 21 # so that Pe and Eddie can fill them in for you. 22 #%{ 23 # @src->@ 24 25 # Specify the source files to use. Full paths or paths relative to the 26 # Makefile can be included. All files, regardless of directory, will have 27 # their object files created in the common object directory. Note that this 28 # means this Makefile will not work correctly if two source files with the 29 # same name (source.c or source.cpp) are included from different directories. 30 # Also note that spaces in folder names do not work well with this Makefile. 31 SRCS = 32 33 # Specify the resource definition files to use. Full or relative paths can be 34 # used. 35 RDEFS = 36 37 # Specify the resource files to use. Full or relative paths can be used. 38 # Both RDEFS and RSRCS can be utilized in the same Makefile. 39 RSRCS = 40 41 # End Pe/Eddie support. 42 # @<-src@ 43 #%} 44 45 # Specify libraries to link against. 46 # There are two acceptable forms of library specifications: 47 # - if your library follows the naming pattern of libXXX.so or libXXX.a, 48 # you can simply specify XXX for the library. (e.g. the entry for 49 # "libtracker.so" would be "tracker") 50 # 51 # - for GCC-independent linking of standard C++ libraries, you can use 52 # $(STDCPPLIBS) instead of the raw "stdc++[.r4] [supc++]" library names. 53 # 54 # - if your library does not follow the standard library naming scheme, 55 # you need to specify the path to the library and it's name. 56 # (e.g. for mylib.a, specify "mylib.a" or "path/mylib.a") 57 LIBS = 58 59 # Specify additional paths to directories following the standard libXXX.so 60 # or libXXX.a naming scheme. You can specify full paths or paths relative 61 # to the Makefile. The paths included are not parsed recursively, so 62 # include all of the paths where libraries must be found. Directories where 63 # source files were specified are automatically included. 64 LIBPATHS = 65 66 # Additional paths to look for system headers. These use the form 67 # "#include <header>". Directories that contain the files in SRCS are 68 # NOT auto-included here. 69 SYSTEM_INCLUDE_PATHS = 70 71 # Additional paths paths to look for local headers. These use the form 72 # #include "header". Directories that contain the files in SRCS are 73 # automatically included. 74 LOCAL_INCLUDE_PATHS = 75 76 # Specify the level of optimization that you want. Specify either NONE (O0), 77 # SOME (O1), FULL (O2), or leave blank (for the default optimization level). 78 OPTIMIZE := 79 80 # Specify the codes for languages you are going to support in this 81 # application. The default "en" one must be provided too. "make catkeys" 82 # will recreate only the "locales/en.catkeys" file. Use it as a template 83 # for creating catkeys for other languages. All localization files must be 84 # placed in the "locales" subdirectory. 85 LOCALES = 86 87 # Specify all the preprocessor symbols to be defined. The symbols will not 88 # have their values set automatically; you must supply the value (if any) to 89 # use. For example, setting DEFINES to "DEBUG=1" will cause the compiler 90 # option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" would pass 91 # "-DDEBUG" on the compiler's command line. 92 DEFINES = 93 94 # Specify the warning level. Either NONE (suppress all warnings), 95 # ALL (enable all warnings), or leave blank (enable default warnings). 96 WARNINGS = 97 98 # With image symbols, stack crawls in the debugger are meaningful. 99 # If set to "TRUE", symbols will be created. 100 SYMBOLS := 101 102 # Includes debug information, which allows the binary to be debugged easily. 103 # If set to "TRUE", debug info will be created. 104 DEBUGGER := 105 106 # Specify any additional compiler flags to be used. 107 COMPILER_FLAGS = 108 109 # Specify any additional linker flags to be used. 110 LINKER_FLAGS = 111 112 # Specify the version of this binary. Example: 113 # -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL" 114 # This may also be specified in a resource. 115 APP_VERSION := 116 117 # (Only used when "TYPE" is "DRIVER"). Specify the desired driver install 118 # location in the /dev hierarchy. Example: 119 # DRIVER_PATH = video/usb 120 # will instruct the "driverinstall" rule to place a symlink to your driver's 121 # binary in ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will 122 # appear at /dev/video/usb when loaded. The default is "misc". 123 DRIVER_PATH = 124 125 ## Include the Makefile-Engine 126 DEVEL_DIRECTORY := \\ 127 $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY) 128 include $(DEVEL_DIRECTORY)/etc/makefile-engine -
deleted file data/develop/makefile
diff --git a/data/develop/makefile b/data/develop/makefile deleted file mode 100644 index 75e6e09..0000000
+ - 1 ## BeOS Generic Makefile v2.5 ##2 3 ## Fill in this file to specify the project being created, and the referenced4 ## makefile-engine will do all of the hard work for you. This handles both5 ## Intel and PowerPC builds of the BeOS and Haiku.6 7 ## Application Specific Settings ---------------------------------------------8 9 # specify the name of the binary10 NAME=11 12 # specify the type of binary13 # APP: Application14 # SHARED: Shared library or add-on15 # STATIC: Static library archive16 # DRIVER: Kernel Driver17 TYPE=18 19 # if you plan to use localization features20 # specify the application MIME signature21 APP_MIME_SIG=22 23 # add support for new Pe and Eddie features24 # to fill in generic makefile25 26 #%{27 # @src->@28 29 # specify the source files to use30 # full paths or paths relative to the makefile can be included31 # all files, regardless of directory, will have their object32 # files created in the common object directory.33 # Note that this means this makefile will not work correctly34 # if two source files with the same name (source.c or source.cpp)35 # are included from different directories. Also note that spaces36 # in folder names do not work well with this makefile.37 SRCS=38 39 # specify the resource definition files to use40 # full path or a relative path to the resource file can be used.41 RDEFS=42 43 # specify the resource files to use.44 # full path or a relative path to the resource file can be used.45 # both RDEFS and RSRCS can be defined in the same makefile.46 RSRCS=47 48 # @<-src@49 #%}50 51 # end support for Pe and Eddie52 53 # specify additional libraries to link against54 # there are two acceptable forms of library specifications55 # - if your library follows the naming pattern of:56 # libXXX.so or libXXX.a you can simply specify XXX57 # library: libbe.so entry: be58 #59 # - for version-independent linking of standard C++ libraries please add60 # $(STDCPPLIBS) instead of raw "stdc++[.r4] [supc++]" library names61 #62 # - for localization support add following libs:63 # locale localestub64 #65 # - if your library does not follow the standard library66 # naming scheme you need to specify the path to the library67 # and it's name68 # library: my_lib.a entry: my_lib.a or path/my_lib.a69 LIBS=70 71 # specify additional paths to directories following the standard72 # libXXX.so or libXXX.a naming scheme. You can specify full paths73 # or paths relative to the makefile. The paths included may not74 # be recursive, so include all of the paths where libraries can75 # be found. Directories where source files are found are76 # automatically included.77 LIBPATHS=78 79 # additional paths to look for system headers80 # thes use the form: #include <header>81 # source file directories are NOT auto-included here82 SYSTEM_INCLUDE_PATHS =83 84 # additional paths to look for local headers85 # thes use the form: #include "header"86 # source file directories are automatically included87 LOCAL_INCLUDE_PATHS =88 89 # specify the level of optimization that you desire90 # NONE, SOME, FULL91 OPTIMIZE=92 93 # specify here the codes for languages you are going94 # to support in this application. The default "en"95 # one must be provided too. "make catkeys" will recreate only96 # locales/en.catkeys file. Use it as template for creating other97 # languages catkeys. All localization files must be placed98 # in "locales" sub-directory.99 LOCALES=100 101 # specify any preprocessor symbols to be defined. The symbols will not102 # have their values set automatically; you must supply the value (if any)103 # to use. For example, setting DEFINES to "DEBUG=1" will cause the104 # compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG"105 # would pass "-DDEBUG" on the compiler's command line.106 DEFINES=107 108 # specify special warning levels109 # if unspecified default warnings will be used110 # NONE = supress all warnings111 # ALL = enable all warnings112 WARNINGS =113 114 # specify whether image symbols will be created115 # so that stack crawls in the debugger are meaningful116 # if TRUE symbols will be created117 SYMBOLS =118 119 # specify debug settings120 # if TRUE will allow application to be run from a source-level121 # debugger. Note that this will disable all optimzation.122 DEBUGGER =123 124 # specify additional compiler flags for all files125 COMPILER_FLAGS =126 127 # specify additional linker flags128 LINKER_FLAGS =129 130 # specify the version of this particular item131 # (for example, -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL")132 # This may also be specified in a resource.133 APP_VERSION =134 135 # (for TYPE == DRIVER only) Specify desired location of driver in the /dev136 # hierarchy. Used by the driverinstall rule. E.g., DRIVER_PATH = video/usb will137 # instruct the driverinstall rule to place a symlink to your driver's binary in138 # ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will appear at139 # /dev/video/usb when loaded. Default is "misc".140 DRIVER_PATH =141 142 ## include the makefile-engine143 DEVEL_DIRECTORY := \144 $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY)145 include $(DEVEL_DIRECTORY)/etc/makefile-engine -
src/data/package_infos/any/makefile_engine
diff --git a/src/data/package_infos/any/makefile_engine b/src/data/package_infos/any/makefile_engine index 10f9b10..1d82f79 100644
a b 1 1 name makefile_engine 2 2 version %HAIKU_VERSION% 3 3 architecture any 4 summary "The makefile engine"5 description "A simple generic makefile engine and makefile template."4 summary "The Makefile engine" 5 description "A simple generic makefile-engine and Makefile template." 6 6 7 7 packager "The Haiku build system" 8 8 vendor "Haiku Project" 9 9 10 copyrights "? Be Inc. 2001-201 3Haiku, Inc."10 copyrights "? Be Inc. 2001-2014 Haiku, Inc." 11 11 licenses MIT 12 12 13 13 provides { -
src/data/settings/tracker_new_templates/Jamfile
diff --git a/src/data/settings/tracker_new_templates/Jamfile b/src/data/settings/tracker_new_templates/Jamfile index 85154e7..59634cd 100644
a b rule PrepareTrackerNewTemplates source : mimeType 13 13 14 14 PrepareTrackerNewTemplates "C++ header" : text/x-source-code ; 15 15 PrepareTrackerNewTemplates "C++ source" : text/x-source-code ; 16 PrepareTrackerNewTemplates " makefile" : text/x-makefile ;16 PrepareTrackerNewTemplates "Makefile" : text/x-makefile ; 17 17 PrepareTrackerNewTemplates "text file" : text/plain ; -
new file src/data/settings/tracker_new_templates/Makefile
diff --git a/src/data/settings/tracker_new_templates/Makefile b/src/data/settings/tracker_new_templates/Makefile new file mode 100644 index 0000000..006a617
- + 1 ## Haiku Generic Makefile v2.6 ## 2 3 ## Fill in this file to specify the project being created, and the referenced 4 ## Makefile-Engine will do all of the hard work for you. This handles any 5 ## architecture of Haiku. 6 7 # The name of the binary. 8 NAME = 9 10 # The type of binary, must be one of: 11 # APP: Application 12 # SHARED: Shared library or add-on 13 # STATIC: Static library archive 14 # DRIVER: Kernel driver 15 TYPE = 16 17 # If you plan to use localization, specify the application's MIME signature. 18 APP_MIME_SIG = 19 20 # The following lines tell Pe and Eddie where the SRCS, RDEFS, and RSRCS are 21 # so that Pe and Eddie can fill them in for you. 22 #%{ 23 # @src->@ 24 25 # Specify the source files to use. Full paths or paths relative to the 26 # Makefile can be included. All files, regardless of directory, will have 27 # their object files created in the common object directory. Note that this 28 # means this Makefile will not work correctly if two source files with the 29 # same name (source.c or source.cpp) are included from different directories. 30 # Also note that spaces in folder names do not work well with this Makefile. 31 SRCS = 32 33 # Specify the resource definition files to use. Full or relative paths can be 34 # used. 35 RDEFS = 36 37 # Specify the resource files to use. Full or relative paths can be used. 38 # Both RDEFS and RSRCS can be utilized in the same Makefile. 39 RSRCS = 40 41 # End Pe/Eddie support. 42 # @<-src@ 43 #%} 44 45 # Specify libraries to link against. 46 # There are two acceptable forms of library specifications: 47 # - if your library follows the naming pattern of libXXX.so or libXXX.a, 48 # you can simply specify XXX for the library. (e.g. the entry for 49 # "libtracker.so" would be "tracker") 50 # 51 # - for GCC-independent linking of standard C++ libraries, you can use 52 # $(STDCPPLIBS) instead of the raw "stdc++[.r4] [supc++]" library names. 53 # 54 # - if your library does not follow the standard library naming scheme, 55 # you need to specify the path to the library and it's name. 56 # (e.g. for mylib.a, specify "mylib.a" or "path/mylib.a") 57 LIBS = 58 59 # Specify additional paths to directories following the standard libXXX.so 60 # or libXXX.a naming scheme. You can specify full paths or paths relative 61 # to the Makefile. The paths included are not parsed recursively, so 62 # include all of the paths where libraries must be found. Directories where 63 # source files were specified are automatically included. 64 LIBPATHS = 65 66 # Additional paths to look for system headers. These use the form 67 # "#include <header>". Directories that contain the files in SRCS are 68 # NOT auto-included here. 69 SYSTEM_INCLUDE_PATHS = 70 71 # Additional paths paths to look for local headers. These use the form 72 # #include "header". Directories that contain the files in SRCS are 73 # automatically included. 74 LOCAL_INCLUDE_PATHS = 75 76 # Specify the level of optimization that you want. Specify either NONE (O0), 77 # SOME (O1), FULL (O2), or leave blank (for the default optimization level). 78 OPTIMIZE := 79 80 # Specify the codes for languages you are going to support in this 81 # application. The default "en" one must be provided too. "make catkeys" 82 # will recreate only the "locales/en.catkeys" file. Use it as a template 83 # for creating catkeys for other languages. All localization files must be 84 # placed in the "locales" subdirectory. 85 LOCALES = 86 87 # Specify all the preprocessor symbols to be defined. The symbols will not 88 # have their values set automatically; you must supply the value (if any) to 89 # use. For example, setting DEFINES to "DEBUG=1" will cause the compiler 90 # option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" would pass 91 # "-DDEBUG" on the compiler's command line. 92 DEFINES = 93 94 # Specify the warning level. Either NONE (suppress all warnings), 95 # ALL (enable all warnings), or leave blank (enable default warnings). 96 WARNINGS = 97 98 # With image symbols, stack crawls in the debugger are meaningful. 99 # If set to "TRUE", symbols will be created. 100 SYMBOLS := 101 102 # Includes debug information, which allows the binary to be debugged easily. 103 # If set to "TRUE", debug info will be created. 104 DEBUGGER := 105 106 # Specify any additional compiler flags to be used. 107 COMPILER_FLAGS = 108 109 # Specify any additional linker flags to be used. 110 LINKER_FLAGS = 111 112 # Specify the version of this binary. Example: 113 # -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL" 114 # This may also be specified in a resource. 115 APP_VERSION := 116 117 # (Only used when "TYPE" is "DRIVER"). Specify the desired driver install 118 # location in the /dev hierarchy. Example: 119 # DRIVER_PATH = video/usb 120 # will instruct the "driverinstall" rule to place a symlink to your driver's 121 # binary in ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will 122 # appear at /dev/video/usb when loaded. The default is "misc". 123 DRIVER_PATH = 124 125 ## Include the Makefile-Engine 126 DEVEL_DIRECTORY := \\ 127 $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY) 128 include $(DEVEL_DIRECTORY)/etc/makefile-engine -
deleted file src/data/settings/tracker_new_templates/makefile
diff --git a/src/data/settings/tracker_new_templates/makefile b/src/data/settings/tracker_new_templates/makefile deleted file mode 100644 index 41c1ca2..0000000
+ - 1 ## BeOS Generic Makefile v2.5 ##2 3 ## Fill in this file to specify the project being created, and the referenced4 ## makefile-engine will do all of the hard work for you. This handles both5 ## Intel and PowerPC builds of the BeOS and Haiku.6 7 ## Application Specific Settings ---------------------------------------------8 9 # specify the name of the binary10 NAME=11 12 # specify the type of binary13 # APP: Application14 # SHARED: Shared library or add-on15 # STATIC: Static library archive16 # DRIVER: Kernel Driver17 TYPE=18 19 # if you plan to use localization features20 # specify the application MIME siganture21 APP_MIME_SIG=22 23 # add support for new Pe and Eddie features24 # to fill in generic makefile25 26 #%{27 # @src->@28 29 # specify the source files to use30 # full paths or paths relative to the makefile can be included31 # all files, regardless of directory, will have their object32 # files created in the common object directory.33 # Note that this means this makefile will not work correctly34 # if two source files with the same name (source.c or source.cpp)35 # are included from different directories. Also note that spaces36 # in folder names do not work well with this makefile.37 SRCS=38 39 # specify the resource definition files to use40 # full path or a relative path to the resource file can be used.41 RDEFS=42 43 # specify the resource files to use.44 # full path or a relative path to the resource file can be used.45 # both RDEFS and RSRCS can be defined in the same makefile.46 RSRCS=47 48 # @<-src@49 #%}50 51 # end support for Pe and Eddie52 53 # specify additional libraries to link against54 # there are two acceptable forms of library specifications55 # - if your library follows the naming pattern of:56 # libXXX.so or libXXX.a you can simply specify XXX57 # library: libbe.so entry: be58 #59 # - for version-independent linking of standard C++ libraries please add60 # $(STDCPPLIBS) instead of raw "stdc++[.r4] [supc++]" library names61 #62 # - for localization support add following libs:63 # locale localestub64 #65 # - if your library does not follow the standard library66 # naming scheme you need to specify the path to the library67 # and it's name68 # library: my_lib.a entry: my_lib.a or path/my_lib.a69 LIBS=70 71 # specify additional paths to directories following the standard72 # libXXX.so or libXXX.a naming scheme. You can specify full paths73 # or paths relative to the makefile. The paths included may not74 # be recursive, so include all of the paths where libraries can75 # be found. Directories where source files are found are76 # automatically included.77 LIBPATHS=78 79 # additional paths to look for system headers80 # thes use the form: #include <header>81 # source file directories are NOT auto-included here82 SYSTEM_INCLUDE_PATHS =83 84 # additional paths to look for local headers85 # thes use the form: #include "header"86 # source file directories are automatically included87 LOCAL_INCLUDE_PATHS =88 89 # specify the level of optimization that you desire90 # NONE, SOME, FULL91 OPTIMIZE=92 93 # specify here the codes for languages you are going94 # to support in this application. The default "en"95 # one must be provided too. "make catkeys" will recreate only96 # locales/en.catkeys file. Use it as template for creating other97 # languages catkeys. All localization files must be placed98 # in "locales" sub-directory.99 LOCALES=100 101 # specify any preprocessor symbols to be defined. The symbols will not102 # have their values set automatically; you must supply the value (if any)103 # to use. For example, setting DEFINES to "DEBUG=1" will cause the104 # compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG"105 # would pass "-DDEBUG" on the compiler's command line.106 DEFINES=107 108 # specify special warning levels109 # if unspecified default warnings will be used110 # NONE = supress all warnings111 # ALL = enable all warnings112 WARNINGS =113 114 # specify whether image symbols will be created115 # so that stack crawls in the debugger are meaningful116 # if TRUE symbols will be created117 SYMBOLS =118 119 # specify debug settings120 # if TRUE will allow application to be run from a source-level121 # debugger. Note that this will disable all optimzation.122 DEBUGGER =123 124 # specify additional compiler flags for all files125 COMPILER_FLAGS =126 127 # specify additional linker flags128 LINKER_FLAGS =129 130 # specify the version of this particular item131 # (for example, -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL")132 # This may also be specified in a resource.133 APP_VERSION =134 135 # (for TYPE == DRIVER only) Specify desired location of driver in the /dev136 # hierarchy. Used by the driverinstall rule. E.g., DRIVER_PATH = video/usb will137 # instruct the driverinstall rule to place a symlink to your driver's binary in138 # ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will appear at139 # /dev/video/usb when loaded. Default is "misc".140 DRIVER_PATH =141 142 ## include the makefile-engine143 DEVEL_DIRECTORY := \144 $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY)145 include $(DEVEL_DIRECTORY)/etc/makefile-engine