diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-25 18:14:22 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-25 18:14:22 -0600 |
commit | 1f534fbf0c0571feb5d8675e428536436fc58060 (patch) | |
tree | 5c9499c2b5ce8794b4fba8de009db55cf60ef979 /yapymake/__init__.py | |
parent | 9fc0c83d6892ae90500c302c656657b2c17ab19f (diff) | |
download | yapymake-1f534fbf0c0571feb5d8675e428536436fc58060.tar.gz yapymake-1f534fbf0c0571feb5d8675e428536436fc58060.zip |
update the targets requested
Diffstat (limited to 'yapymake/__init__.py')
-rw-r--r-- | yapymake/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
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) |