MAKE-like build that deletes orphans?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users MAKE-like build that deletes orphans?
# 1  
Old 05-25-2011
MAKE-like build that deletes orphans?

I have a complex multi-stage (media conversion and formatting) build process that leaves orphan target files needing deleting automatically (i.e. by reference only to the build rules themselves, not any parallel config) upon each regular build. Since MAKE cannot do this, what can? Thanks.
# 2  
Old 05-26-2011
Why build orphan targets in the first place if you're just going to delete them? Make won't build orphans unless that target is either given or first since nothing pulls them in. Or are you just saying you want intermediate files deleted?

I suspect Make can be made to do what you want, but to tell you how you'll need to be a lot more specific about what you're actually doing.
# 3  
Old 05-26-2011
> Why build orphan targets in the first place if you're just going to delete them?

The orphan target files aren't orphans when built...

> Make won't build orphans unless that target is either given or first since nothing pulls them in

... being orphaned only subsequently - by the removal of source files from this highly changeable set.

Hence I'd like an option that pulls them out.
# 4  
Old 05-29-2011
So the rules change?

You need to be a lot more specific about what you're actually doing.
# 5  
Old 05-29-2011
Quote:
Originally Posted by Corona688
So the rules change?
Not necessarily. In a regular MAKE project, simply removing a source file will leave an orphan target.
Quote:
Originally Posted by Corona688
You need to be a lot more specific about what you're actually doing.
That's but what I require a solution to is the general problem.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

A make-like build utility based on Lua

xmake is a make-like build utility based on lua. (Link to project site: xmake) The project focuses on making development and building easier and provides many features (.e.g package, install, plugin, macro, action, option, task ...), so that any developer can quickly pick it up and enjoy the... (1 Reply)
Discussion started by: waruqi
1 Replies

2. Shell Programming and Scripting

Build.xml invocation by Build Script

Hi I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies

3. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

4. Solaris

rm -rf not able deletes file but not the directory

i am trying to remove a directory using rm -rf command but its not getting removed.. it doesnt throw any error also.. i am logging as the owner of the dir and removing it but still no luck.. i am able remove a file but not a directory. i am using solaris 10 (12 Replies)
Discussion started by: chidori
12 Replies

5. Slackware

Thunderbird 3.1.9 deletes from drafts

I am using Tbird as it came with Slackware 13.37 and everytime I send something I get a message 1 or 2 drafts deleted. Should it be doing that? If not has this been reported ? How can I find out if it was reported? I have no drafts to delete. (2 Replies)
Discussion started by: slak0
2 Replies

6. Shell Programming and Scripting

A script that deletes files.

I want to write a script that deletes files inside the dir. However, the script should also allow the user to confirm by pressing (d) key before deleting files.. #!/bin/bash for file in $1/* do size='ls -l $file | cut -f 5 -d " "' name='ls -l $file | cut -f 9 -d " "' ... (1 Reply)
Discussion started by: herberwz
1 Replies

7. UNIX for Dummies Questions & Answers

Deletes those files in a directory ?

I need a shell script that accepts 2 directories names bar1 and bar2 as arguments , and deletes those files in bar2 which are are identical to their name spaces in bar1. I tried with this code but it gives error. if then echo " syntax <comnd dir1 dir2 > " exit else ... (6 Replies)
Discussion started by: krishnampkkm
6 Replies

8. UNIX for Advanced & Expert Users

build - make -gmake: execvp: mcu: Permission denied

Hi All, sorry it was application related.. i am deleting it Thanks & Regards Shihab (0 Replies)
Discussion started by: shihabvk
0 Replies

9. Solaris

make[2]: warning: Clock skew detected. Your build may be incomplete.

dear all when i compile any file under solaris it gives the below warning how can i disable it -bash-3.00$ make GNLPFT177 make: Warning: File `GNLPFT177.rc' has modification time 36 s in the future make GNLPFT177.c make: Entering directory `/devapp/jordev/batch/source' make: Warning: File... (3 Replies)
Discussion started by: murad.jaber
3 Replies

10. UNIX for Advanced & Expert Users

How can i make Build.

I have just build a softpaq for our softqare release. Now i am giving tar file of softpaq to customer. It need to extract and then need to run script file inside it. I want to build this way that when user extract script file in this should automatically starts/excutes... Can anyone suggest... (3 Replies)
Discussion started by: ajayyadavmca
3 Replies
Login or Register to Ask a Question