forked from cesar-douady/open-lmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve ldebug -c + fix lack of dep on static dep
- Loading branch information
1 parent
87d1f6b
commit 74363a4
Showing
7 changed files
with
78 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This file is part of the open-lmake distribution ([email protected]:cesar-douady/open-lmake.git) | ||
# Copyright (c) 2023 Doliam | ||
# This program is free software: you can redistribute/modify under the terms of the GPL-v3 (https://www.gnu.org/licenses/gpl-3.0.html). | ||
# This program is distributed WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
if __name__!='__main__' : | ||
|
||
import sys | ||
import time | ||
|
||
import lmake | ||
from lmake.rules import Rule | ||
|
||
lmake.manifest = ( | ||
'Lmakefile.py' | ||
, 'step.py' | ||
) | ||
|
||
from step import step | ||
|
||
class Hdep(Rule) : | ||
target = r'hdep' | ||
cmd = 'echo 2' | ||
|
||
class Sdep(Rule) : | ||
target = r'sdep' | ||
cmd = 'echo {step}' | ||
|
||
class Dut(Rule) : | ||
target = 'dut' | ||
dep = 'sdep' | ||
cmd = '[ $(cat hdep) = {step} ] && cat sdep' | ||
|
||
else : | ||
|
||
import ut | ||
|
||
print('step=1',file=open('step.py','w')) | ||
ut.lmake( 'dut' , may_rerun=1 , done=2 , failed=1 , rc=1 ) | ||
|
||
print('step=2',file=open('step.py','w')) | ||
ut.lmake( 'dut' , done=2 ) # check sdep is not forgetten due to execution w/o hdep |