diff options
Diffstat (limited to 'talerbuildconfig.py')
-rw-r--r-- | talerbuildconfig.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/talerbuildconfig.py b/talerbuildconfig.py index da063b9..b444513 100644 --- a/talerbuildconfig.py +++ b/talerbuildconfig.py @@ -77,6 +77,10 @@ class BuildConfig: """If enabled, process the --prefix argument.""" self.prefix_enabled = True + def enable_variant(self): + """If enable, process the --variant argument.""" + self.variant_enabled = False + def enable_configmk(self): """If enabled, output the config.mk makefile fragment.""" self.configmk_enabled = True @@ -90,6 +94,13 @@ class BuildConfig: default="/usr/local", help="Directory prefix for installation", ) + if self.variant_enabled: + parser.add_argument( + "--variant", + type=str, + default="", + help="Directory for installation", + ) for tool in self.tools: tool.args(parser) args = self.args = parser.parse_args() |