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:[EMAIL PROTECTED] On Behalf Of Paul D. Smith Sent: Monday, March 20, 2006 10:27 AM To: PATTON, BILLY (SBCSI) Cc: [email protected] Subject: RE: Must be very simple %% "PATTON, BILLY \(SBCSI\)" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
