%% Dave Yost <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          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


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to