better stuff

This commit is contained in:
Nishi 2026-05-08 19:07:45 +09:00
commit c89f96ce8a
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 41 additions and 12 deletions

View file

@ -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() {
};