better stuff
This commit is contained in:
parent
a523a42e6e
commit
c89f96ce8a
5 changed files with 41 additions and 12 deletions
|
|
@ -1,5 +1,7 @@
|
|||
const pmake = {
|
||||
VERSION : "0.0"
|
||||
VERSION : "0.0",
|
||||
actions : {},
|
||||
compilers : {}
|
||||
};
|
||||
|
||||
pmake.inherit = function(base) {
|
||||
|
|
@ -23,9 +25,15 @@ pmake.inherited = function(base, parent) {
|
|||
};
|
||||
|
||||
pmake.register = function(base) {
|
||||
if(pmake.inherited(base, Compiler)) {
|
||||
if(pmake.inherited(base, pmake.Compiler)) {
|
||||
pmake.compilers[base.target] = base;
|
||||
} else if(pmake.inherited(base, pmake.Action)) {
|
||||
pmake.actions[base.target] = base;
|
||||
}
|
||||
};
|
||||
|
||||
function Compiler() {
|
||||
}
|
||||
pmake.Compiler = function() {
|
||||
};
|
||||
|
||||
pmake.Action = function() {
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue