Comments (4)
I like that!
I'm going to "pull" that from you. With minor changes: I'm going to keep the clean target intact. This target is meant to clean all "objects" only. In case of using separate build directories for different build modes your rule will only delete one such subdirectory (e.g. obj/debug while keeping obj/release and obj/profile). Deletion of separate objdirs is meant as a job for dist_clean target.
Thank you! I never liked the .fake_file solution and I know that I've read about order-only prerequisites but it seems that when I read about that my .fake_file dislike was buried somewhere else in my brain and it never clicked with "aha" moment.
Best regards
Andrzej
from nonrec-make.
Uploaded now f3f07d8.
Please take a look at that (it is on eval_hdr branch for now - this will be merged to master once I hear some feedback about that proposal :)).
I'm closing this one.
Regards
Andrzej
from nonrec-make.
Hi Andrzej,
Personally, I like the proposal. =P Realized seeing it that I forgot to go back to update ?R and ^R in mine.
It took me a bit to understand the .SECONDARY target for
Any idea why in one method $(OBJPATH) is treated as intermediate, and in the other it's not?
Thanks,
James.
from nonrec-make.
James
Initially I removed the .SECONDARY for OBJPATH but then I ran that on my examples and it turned out that make considers those directories as intermediate products (as you've mentioned) and then tries to remove them at the end giving a bunch of error messages.
I have not yet understood why they are considered intermediate targets, so for now I'm going to keep it like it is.
If you'll have some insight then don't hesitate and share it with me :)
Regards
Andrzej
from nonrec-make.
Related Issues (19)
- SUBDIRS question HOT 6
- How to shorten OBJPATH when doing out-of-tree builds HOT 6
- Extending functionality without touching the source of nonrec-make HOT 2
- Overwriting system defined compilers HOT 2
- not a layer?socute HOT 15
- make dist_clean and custom OBJDIRs HOT 3
- In xxx.d files .I think it should be like xxx.o xxx.d:xxx.c x1.h x2.h \n xxx.c x1.h x2.h: HOT 2
- Uppercase and lowercase for same word mixed together HOT 3
- Can't figure out how to use SUBDIRS_TGTS for more than one level of subdirectories. HOT 4
- Autogenerated / Installed source and dependencies HOT 4
- Build vs. target targets HOT 8
- Bug in the config-default.mk file HOT 1
- Can I compile exe and so in one directory hierarchy both? HOT 2
- Install example HOT 8
- License HOT 2
- Is it possible to make it even simplier? HOT 3
- Suggestion: Include targets in default clean rule HOT 2
- tgt_rule changes order of dependencies HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonrec-make.