bugmake - Bugs: bug #9059, Support for syncing alternate...

 
 

bug #9059: Support for syncing alternate syntax

Submitted by:  Dave Yost <yost>
Submitted on:  Sat 22 May 2004 05:09:56 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 23 May 2004 09:45:56 PM UTC, comment #2:

D'Oh! Of course! Thanks!

Dave Yost <yost>
Sun 23 May 2004 08:43:54 PM UTC, comment #1:

The right way to handle this in make is to make the sync file the target, and the two sources prequisites. If you use:

syncDir/%.sync : javaDir/%.java lispDir/%.lisp
synctool javaDir lispDir syncDir $*

then whenever either the java or lisp files are newer than the sync file, the synctool will be invoked to resolve the issue.

Paul D. Smith <psmith>
Project Administrator
Sat 22 May 2004 05:09:56 PM UTC, original submission:

I have two sets of isomorphic sources. Let's say one is in lisp syntax and the other is in Java syntax (I wish; actually, the existing application is more mundane!). One reason for doing this is to satisfy two different sets of programmers: one likes lisp syntax; the other likes Java syntax. Or in my case, one programmer likes to use macros with Java, and the other uses an IDE that can't deal with the macros.

I've written a program that automatically syncs the two sets of files. For each item, it maintains a sync file and checks mod times of the two forms against the sync file to know if translation is needed and if so, in which direction.

Problem is, I can't get make to invoke my sync tool without a circular reference or without syncing twice.

Is there a way?

Or could I talk you into considering a feature something like this

javaDir/%.java : lispDir/%.lisp : syncDir/%
lisp-to-java javaDir lispDir syncDir $*

lispDir/%.lisp : javaDir/%.java : syncDir/%
java-to-lisp lispDir javaDir syncDir $*

Or:

# Let synctool figure out what to do
javaDir/%.java : lispDir/%.lisp : syncDir
synctool javaDir lispDir syncDir $*

Dave Yost <yost>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 24 May 2004 05:15:26 PM UTCpsmithStatusNone=>Not A Bug
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1