From 1f534fbf0c0571feb5d8675e428536436fc58060 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 25 Mar 2021 18:14:22 -0600 Subject: update the targets requested --- yapymake/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'yapymake/__init__.py') diff --git a/yapymake/__init__.py b/yapymake/__init__.py index 34221f2..fe4b182 100644 --- a/yapymake/__init__.py +++ b/yapymake/__init__.py @@ -12,3 +12,10 @@ def main(): # TODO handle SHELL for input_file in these_args.makefile: file.read(input_file) + + targets = [arg for arg in these_args.targets_or_macros if '=' not in arg] + if len(targets) == 0: + targets = [file.first_non_special_target] + + for target in targets: + file.target(target).update(file) -- cgit v1.2.3