bug-make
[Top][All Lists]
Advanced

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

Re: feature request


From: Paul D. Smith
Subject: Re: feature request
Date: Fri, 19 Mar 2004 00:16:20 -0500

%% Dave Yost <address@hidden> writes:

  dy> I have two sets of isomorphic sources.  Let's say one is in lisp
  dy> syntax and the other is in Java syntax.  Two different sets of
  dy> programmers, one likes lisp syntax; the other likes Java syntax.
  dy> I've written a program that automatically syncs the two sets of
  dy> files, but I can't get make to invoke my sync tool without a
  dy> circular reference or without syncing twice.

  dy> Is there a way?

The only thing you can do is use a sentinel file, like this:

    .sync: $(wildcard java/*.java lisp/*.lisp)
            synctool java lisp syncdir
            @touch $@

Now whenever any file is newer than the sentinel file make will see that
something has changed, and the synctool will be run, then the sentinel
will be updated.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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