help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Query on GMake 3.79.1


From: bhaskar . g
Subject: Query on GMake 3.79.1
Date: Tue, 19 Feb 2002 16:49:02 +0000


Hello,

I have a query on the functionality of the gmake. I have written a script as following:
/Beginning if the make file/

_SDE_PRJLIST_FILENAME = $(_TMROOT)/project/prjlist.txt
_SDE_REQPRJ_LST := $(if $(wildcard $(_SDE_PRJLIST_FILENAME)), $(shell $(CAT) $(_SDE_PRJLIST_FILENAME)), $(_TMROOT))
_SDE_REQPRJ := $(strip $(_SDE_REQPRJ_LST))

_SDE_COMP_LIST_FILE   := $(foreach COMPS, $(_SDE_REQPRJ), $(wildcard $(COMPS)/comps/*))
_SDE_INTFS_LIST_FILE  := $(foreach INTFS, $(_SDE_REQPRJ), $(wildcard $(INTFS)/intfs/*))
_SDE_ALL_COMPS_DIR    := $(strip $(_SDE_INTFS_LIST_FILE) $(_SDE_COMP_LIST_FILE))
_SDE_COMPS_FILE       := $(foreach DIR, $(_SDE_ALL_COMPS_DIR), $(notdir $(DIR)) $(DIR))

LOC_LIST_FILENAME = $(_SDE_TMTGTBUILDROOT)/project/loc_list.txt
LOC_LIST_MKFILENAME = $(_SDE_TMTGTBUILDROOT)/project/loc_list.mk


$(LOC_LIST_FILENAME):                                           \
                $(_SDE_PRJLIST_FILENAME)                        \
                $(_SDE_DEP_MAKEFILES)                           \
        $(_SDE_ECHO)$(MKDIR) $(_SDE_TMTGTBUILDROOT)/project
        $(_SDE_ECHO)$(ECHO) $(_SDE_COMPS_FILE) > $@

$(_SDE_PRJLIST_FILENAME):
        $(_SDE_ECHO)$(ECHO) $(_TMROOT) > $@

makelist:       $(_SDE_PRJLIST_FILENAME) \
                $(LOC_LIST_FILENAME)
        @$(ECHO) $(_SDE_PRJLIST_FILENAME)
        @$(ECHO) $(_SDE_REQPRJ_LST)
        @$(ECHO) $(_SDE_REQPRJ)
        @$(ECHO) $(_SDE_COMP_LIST_FILE)
        / End of the MakeFile/


What this part of the script does is to build a list of elements present in a/several directory/ies mentioned in the
file prjlist.txt and list in the following format <element1> <locationof element1> <element2> <location of 2> ..... etc.

Now if i have an entry in the prjlist.txt eg:
1. /home/bhaskar/test /home/bhaskar/code
This lists all the subdirectories in the above mentioned <path>/comps directory.
2. $(_TESTPRJ)/test /home/bhaskar/code
This lists only the second part of the txt file ie files/directories in /home/bhaskar/code/comps directory.

I think there is a bug in the wildcard part of the in defining the _SDE_COMP_LIST_FILE.

Can you please let us know the solution for this.

thanks and regards

Bhaskar G

SSD/DTG/CTO
PS DCC - B,
Philips Innovation Campus, 1&2 Murphy Road,
Ulsoor, Bangalore 560 008.
Mail: address@hidden
____________________________________________________
"I find that the harder I work, the more luck I seem to have. "

The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]