Differences between version 64 and previous revision of MakefileHowto.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 64 | Last edited on Friday, July 7, 2006 11:48:48 am | by AristotlePagaltzis | Revert |
Older page: | version 63 | Last edited on Thursday, November 10, 2005 9:06:54 pm | by JohnMcPherson | Revert |
@@ -350,13 +350,13 @@
I have a question. I have a directory called src. Within this directory, a group publishes designs inside directories:
<verbatim>
-
Release_010405
- Release_010505
- Release_010605
- Release_032304
- Release_082903
+Release_010405
+Release_010505
+Release_010605
+Release_032304
+Release_082903
</verbatim>
If there is a file called baja.c inside one of these directories that is newer than baja.o, I want to compile. I was able to make a list of all the baja.c files within the Release directories using wildcard:
@@ -367,4 +367,7 @@
baja.local: $(NEWSOURCES)
cp $< .
''You could try using __$?__ which gives you the names of the prerequisites which are newer than the target. If there can be several of those and you only need the latest, though, you have to do it in the recipe, using shell tools.'' --AristotlePagaltzis
+
+----
+CategoryHowto