[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Must be very simple
From: |
PATTON, BILLY \(SBCSI\) |
Subject: |
RE: Must be very simple |
Date: |
Mon, 20 Mar 2006 11:21:19 -0600 |
The wildcard would work but it would have to do something like
if directory $(TOP_DIR)/SOURCE_TREE exists then
-include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/make.include
-include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/make.dependencies
-include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/make.include
-include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/make.dependencies
-include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/*/make.include
-include $(wildcard $(TOP_DIR)/SOURCE_TREE/*/*/*/make.dependencies
else
-include $(wildcard $(PVCS_DIR)/static_makefiles/*.make.include
endif
The ones under the static_makefiles will mostly be exactly the same as
in the SOURCE_TREE.
But including both will result in K's warning about duplicate names.
-----Original Message-----
From: Paul Smith [mailto:address@hidden On Behalf Of Paul D. Smith
Sent: Monday, March 20, 2006 10:27 AM
To: PATTON, BILLY (SBCSI)
Cc: address@hidden
Subject: RE: Must be very simple
%% "PATTON, BILLY \(SBCSI\)" <address@hidden> writes:
pb> Over 450 + directories -I would be too large.
Are they under two different prefixes, like:
/master/dira/dirb/dirc/make.include
/source/dira/dirb/dirc/make.include
?? if so you can use:
make -I /source -I /master
include dira/dirb/dirc/make.include
Again, without full specifications it's hard to advise you.
pb> I'm working on a rule
pb> all : inc_makefiles
pb> .NONPARALLEL : inc_makefile
pb> inc_makefile :
pb> <tab>$(foreach ...
pb> But this will not work.
It will _work_, exactly as you've written it. However, it obviously
doesn't do anything close to what you're looking for (just describe what
that makefile does to yourself in English and you'll see...)
pb> wildcard will work if I know if the first directory exists. If it
pb> doesn't I don't want to wildcard the second directory I could K's
pb> of duplicate variables.
Sorry, I didn't understand what you said. I don't see any problem with
the directory not existing.
Please check the docs for how $(wildcard ...) works.
--
------------------------------------------------------------------------
-------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad
Scientist
- RE: Must be very simple, (continued)
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20
- RE: Must be very simple,
PATTON, BILLY \(SBCSI\) <=
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20
- RE: Must be very simple, PATTON, BILLY \(SBCSI\), 2006/03/20