intfiction.org

The Interactive Fiction Community Forum
It is currently Mon May 20, 2013 12:10 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Dec 28, 2011 1:42 pm 
Offline

Joined: Tue Mar 22, 2011 7:53 am
Posts: 158
Just checking: is it by design that t3make does not create directories that are specified in a project file? I know the system manual says that project files are not true build files, per se, but it seems like creating directories is still something that would be nice. (Especially given that whole power programmer thing that people are talking about.) For example, I have this makefile.t3m:

Code:
-o "build\exe\HelloWorld.t3"
-Fo "build\obj"
-Fy "build\sym"

hello.t


I like this approach because to do a 'clean' task I can just wipe out the build directory. Then when I run t3make again, everything would be recreated. But that doesn't happen because the directories are not created. I understand separate compilation and the dependency mechanism that TADS uses. But Java does the same thing and yet most power programmers still run a 'clean' task for a totally fresh build directory.

I should add that I'm also using t3make from the command line in these situations.

So, again, just checking if this is a bug or by design.


Top
 Profile Send private message  
 
PostPosted: Wed Dec 28, 2011 2:33 pm 
Offline
User avatar

Joined: Tue Apr 20, 2010 2:48 pm
Posts: 686
It's by design. That means that when you ship a game's source code, make sure the directories exist in the ZIP/RAR/whatever.

To clean, you can do "t3make -clean".


Top
 Profile Send private message  
 
PostPosted: Wed Dec 28, 2011 5:07 pm 
Offline

Joined: Tue Mar 22, 2011 7:53 am
Posts: 158
RealNC wrote:
It's by design. That means that when you ship a game's source code, make sure the directories exist in the ZIP/RAR/whatever. To clean, you can do "t3make -clean".


Sounds good; I didn't even know about the -clean option. It does seem odd to allow the clean of directories but not the creation of them. (This would be the equivalent of an init task in Ant, I guess.) No matter, though; the fact that there's a clean is good enough for me.


Top
 Profile Send private message  
 
PostPosted: Wed Dec 28, 2011 5:27 pm 
Offline
User avatar

Joined: Tue Apr 20, 2010 2:48 pm
Posts: 686
bukayeva wrote:
Sounds good; I didn't even know about the -clean option. It does seem odd to allow the clean of directories but not the creation of them.

t3make doesn't clean directories. It cleans files. It doesn't know anything about the directories. It creates files when building, and deletes those files when doing -clean. If it would delete anything else, that would be dangerous and a source for data loss.

The directories are purely optional. If you don't specify -Fy and -Fo options, then everything is put in the current directory.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group