help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make: compilation firewall


From: Paul Jarc
Subject: Re: make: compilation firewall
Date: Fri, 16 Feb 2007 15:45:08 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

"Michael" <mchlgibs@aol.com> wrote:
> out.h out.cc: in.our_format generate
>      generate -i in.our_format -o tmp
>      if (tmp.h != out.h OR tmp.cc != out.cc) {
>          cp tmp.h out.h
>          cp tmp.cc out.cc
>      }

        if { cmp tmp.h out.h && cmp tmp.cc out.cc; } > /dev/null 2>&1; \
          then :; \
          else cp tmp.h out.h && cp tmp.cc out.cc; \
        fi

You could also incorporate this conditional update into generate
itself, to keep the Makefile simpler.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]