Lines 927-934
Link Here
|
927 |
} |
927 |
} |
928 |
} |
928 |
} |
929 |
else if( !(tg1->ce_flag & F_SPECIAL) && |
929 |
else if( !(tg1->ce_flag & F_SPECIAL) && |
930 |
(p = _is_magic( tg1->CE_NAME )) != NIL(char)) |
930 |
(p = _is_magic( tg1->CE_NAME )) != NIL(char) && |
931 |
_do_magic( op, p, tg1, prereq, attr, set_dir ); |
931 |
_do_magic( op, p, tg1, prereq, attr, set_dir ) ) |
|
|
932 |
; /* _do_magic() does all that is needed (if return value is TRUE). */ |
932 |
else if( op & R_OP_DCL ) { /* op == :: */ |
933 |
else if( op & R_OP_DCL ) { /* op == :: */ |
933 |
CELLPTR tmp_cell = _make_multi(tg1); |
934 |
CELLPTR tmp_cell = _make_multi(tg1); |
934 |
|
935 |
|
Lines 1006-1011
Link Here
|
1006 |
This function investigates dot for being a magic target of the form |
1007 |
This function investigates dot for being a magic target of the form |
1007 |
.<chars>.<chars> or .<chars> and creates the appropriate % rules for |
1008 |
.<chars>.<chars> or .<chars> and creates the appropriate % rules for |
1008 |
that target. |
1009 |
that target. |
|
|
1010 |
If the target is given with an undefined syntax, i.e. with prerequisites, |
1011 |
then this function terminates early without creating % rules and |
1012 |
returns 0. |
1013 |
If successful the function returns 1. |
1009 |
|
1014 |
|
1010 |
The function builds the % rule, `%.o : %.c' from .c.o, and |
1015 |
The function builds the % rule, `%.o : %.c' from .c.o, and |
1011 |
`% : %.a' from .a */ |
1016 |
`% : %.a' from .a */ |
Lines 1025-1032
Link Here
|
1025 |
|
1030 |
|
1026 |
DB_PRINT("%", ("Analysing magic target [%s]", target->CE_NAME)); |
1031 |
DB_PRINT("%", ("Analysing magic target [%s]", target->CE_NAME)); |
1027 |
|
1032 |
|
1028 |
if( prereq != NIL(CELL) ) |
1033 |
if( prereq != NIL(CELL) ) { |
1029 |
Warning( "Ignoring prerequisites of old style meta-target" ); |
1034 |
Warning( "Ignoring AUGMAKE meta-target [$s] because prerequisites are present.", target->CE_NAME ); |
|
|
1035 |
DB_RETURN(0); |
1036 |
} |
1030 |
|
1037 |
|
1031 |
if( dot == target->CE_NAME ) { /* its of the form .a */ |
1038 |
if( dot == target->CE_NAME ) { /* its of the form .a */ |
1032 |
tg = Def_cell( "%" ); |
1039 |
tg = Def_cell( "%" ); |