aha
SCCS.mk is in the nmake src
the intention was to install it in $INSTALLROOT/lib/make/
its deliberately not installed by default
I'm not exactly sure why, except that maybe it wasn't tested in the real world

here it is -- put this in the same dir as the makefile or in 
$INSTALLROOT/lib/make/
if it works for you then I'll make sure its installed by default
---
/*
 * sccs metarule support
 */

":SCCS:" : .MAKE .OPERATOR

GET = get
GETFLAGS =

.SCCS.UNGET =

.SCCS.get : .FUNCTION
        local ( I O ) $(%)
        if "$(O:P=X)"
                return : $(O) ok
        end
        if ! .SCCS.UNGET
                .DONE : .SCCS.DONE
                .SCCS.DONE :
                        $(RM) $(RMFLAGS) $(.SCCS.UNGET)
        end
        .SCCS.UNGET += $(O)
        return $(GET) $(GETFLAGS) $(I) > $(O)

% : .TERMINAL s.%
        $(.SCCS.get $(>) $(<))
---

On Mon, 16 Jan 2012 17:31:31 -0500 Bruce Lilly wrote:
> On Mon, 16 Jan 2012 10:00:47 -0500
> Glenn Fowler <[email protected]> wrote:

> > did you assert this near the top of your makefile:
> >     :SCCS:
> > 
> > this can also be asserted in a global rules file

> I hadn't; doing so gives a warning until after the .mo file is
> recompiled:

> #nmake -n prog
> make: warning: nmakefile.mo: out of date with nmakefile
> make: warning: nmakefile.mo: recompiling
> make: "nmakefile", line 6: warning: operator :SCCS: not defined
> make: don't know how to make prog : a.o : a.c

> [this is adapted from the example in the Alcatel tutorial, where s.a.c
> is an SCCS file]

> After the .mo file is recompiled the warning disappears but the error
> remains.

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to