fix(bin/linja): add 'all' to phony target; allow multiple phony targets
This commit is contained in:
parent
531de7990d
commit
14472b20eb
1 changed files with 3 additions and 5 deletions
|
@ -39,7 +39,7 @@ if platform.system().startswith("MSYS"):
|
|||
else:
|
||||
g_linja_path = os.path.abspath(os.path.realpath(__file__))
|
||||
g_lean_bin_dir = os.path.dirname(g_linja_path)
|
||||
g_phony_targets = ["clean", "tags", "clear-cache"]
|
||||
g_phony_targets = ["all", "clean", "tags", "clear-cache"]
|
||||
g_project_filename = ".project"
|
||||
g_lean_path = "USE DEFAULT" # System will search automatically
|
||||
g_ltags_path = "USE DEFAULT" # System will search automatically
|
||||
|
@ -236,8 +236,6 @@ def process_args(args):
|
|||
error("cache argument has to be ends with .lean")
|
||||
args.cache = args.cache[:-4] + "clean"
|
||||
args.phony_targets = list(set(g_phony_targets) & set(args.targets))
|
||||
if len(args.phony_targets) > 1:
|
||||
error("Please provide at most one phony target: " + str(args.phony_targets))
|
||||
if args.verbose:
|
||||
g_logger.setLevel(logging.INFO)
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue