[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is wrong with this
From: |
PATTON, BILLY \(SBCSI\) |
Subject: |
What is wrong with this |
Date: |
Wed, 15 Mar 2006 14:02:12 -0600 |
hpux gmake 3.80
my results
__BEGIN__
gmake build_ldb_infsync_frm
sh: Syntax error at line 1 : `then' is not matched.
gmake: *** [build_ldb_infsync_frm] Error 2
__END__
my definitions
__BEGIN__
define mkdir_bb
${EXEC_LOG} ${MKDIR} ${SRC_TREE}/$(1)/$(2)/shr -proj $(1) -bb $(2) ;\
${EXEC_LOG} ${MKDIR} ${SRC_TREE}/$(1)/$(2)/pub -proj $(1) -bb $(2) ;\
${EXEC_LOG} ${MKDIR} ${PRD_TREE}/$(1)/$(2)/bin -proj $(1) -bb $(2) ;\
${EXEC_LOG} ${MKDIR} ${PRD_TREE}/$(1)/$(2)/lib -proj $(1) -bb $(2)
endef
# mkdir SOURCE_TREE/<proj>/<bb>/<topic>/src
# mkdir SOURCE_TREE/<proj>/<bb>/<topic>/inc
define mkdir_topic
${EXEC_LOG} ${MKDIR} ${SRC_TREE}/$(1)/$(2)/$(3)/src -proj $(1) -bb
$(2) -topic $(3) ;\
${EXEC_LOG} ${MKDIR} ${SRC_TREE}/$(1)/$(2)/$(3)/inc -proj $(1) -bb
$(2) -topic $(3) ;\
$(call mkdir_bb,$(1),$(2),$(3))
endef
# cp ${MAKEINC_DIR}/make.include.<proj> ${SRC_TREE}/<proj>/make.include
define copy_mi_proj
if ! test -f ${SRC_TREE}/$(1)/make.include ; then
${EXEC_LOG} $(CP) ${MAKEINC_DIR}/make.include.$(1)
${SRC_TREE}/$(1)/make.include -proj $(1) ;
fi
endef
# cp ${MAKEINC_DIR}/make.include.<proj>.<bb>
${SRC_TREE}/<proj>/<bb>/make.include
define copy_mi_bb
if ! test -f ${SRC_TREE}/$(1)/$(2)/make.include ; then
${EXEC_LOG} $(CP) ${MAKEINC_DIR}/make.include.$(1).$(2)
${SRC_TREE}/$(1)/$(2)/make.include -proj $(1) -bb $(2) ;
fi
if ! test -f ${SRC_TREE}/$(1)/make.include ; then
$(call copy_mi_proj,$(1));
fi
endef
# cp ${MAKEINC_DIR}/make.include.<proj>.<bb>.<topic>
${SRC_TREE}/<proj>/<bb>/<topic>/make.include
define copy_mi_topic
if ! test -f ${SRC_TREE}/$(1)/$(2)/$(3)/make.include ; then
${EXEC_LOG} $(CP) ${MAKEINC_DIR}/make.include.$(1).$(2).$(3)
${SRC_TREE}/$(1)/$(2)/$(3)/make.include -proj $(1) -bb $(2) \
-topic $(3);
fi
if ! test -f ${SRC_TREE}/$(1)/$(2)/make.include ; then
$(call copy_mi_bb,$(1),$(2));
fi
endef
__END__
my Makefile
__BEGIN__
build_ldb_infsync_frm :
@$(call mkdir_topic,ldb,infsync,frm)
@$(call copy_mi_topic,ldb,infsync,frm)
__END__
What comes out of gmake -n ( I did the indention )
__BEGIN__
exec_log -log v0506/log.2015140016 /usr/bin/mkdir -p
v0506/SOURCE_TREE/ldb/infsync/frm/src -proj ldb -bb infsync -topic frm \
; exec_log -log v0506/log.2015140016 /usr/bin/mkdir -p
v0506/SOURCE_TREE/ldb/infsync/frm/inc -proj ldb -bb infsync -topic f\
rm ; exec_log -log v0506/log.2015140016 /usr/bin/mkdir -p
v0506/SOURCE_TREE/ldb/infsync/shr -proj ldb -bb infsync ; exec_l\
og -log v0506/log.2015140016 /usr/bin/mkdir -p
v0506/SOURCE_TREE/ldb/infsync/pub -proj ldb -bb infsync ; exec_log -log
v0506\
/log.2015140016 /usr/bin/mkdir -p v0506/PRODUCT_TREE/ldb/infsync/bin
-proj ldb -bb infsync ; exec_log -log v0506/log.2015140\
016 /usr/bin/mkdir -p v0506/PRODUCT_TREE/ldb/infsync/lib -proj ldb -bb
infsync
if ! test -f v0506/SOURCE_TREE/ldb/infsync/frm/make.include ; then
exec_log -log v0506/log.2015140016 /usr/bin/cp
/home/bp1497/files_d_make/make.include.ldb.infsync.frm
v0506/SOURCE_TREE/ldb\
/infsync/frm/make.include -proj ldb -bb infsync -topic frm;
fi
if ! test -f v0506/SOURCE_TREE/ldb/infsync/make.include ; then
if ! test -f v0506/SOURCE_TREE/ldb/infsync/make.include ; then
exec_log -log v0506/log.2015140016 /usr/bin/cp
/home/bp1497/files_d_make/make.include.ldb.infsync
v0506/SOURCE_TREE/ldb/i\
nfsync/make.include -proj ldb -bb infsync ;
fi
if ! test -f v0506/SOURCE_TREE/ldb/make.include ; then
if ! test -f v0506/SOURCE_TREE/ldb/make.include ; then
exec_log -log v0506/log.2015140016 /usr/bin/cp
/home/bp1497/files_d_make/make.include.ldb
v0506/SOURCE_TREE/ldb/make.in\
clude -proj ldb ;
fi;
fi;
fi
__END__
- What is wrong with this,
PATTON, BILLY \(SBCSI\) <=
- RE: What is wrong with this, PATTON, BILLY \(SBCSI\), 2006/03/15
- RE: What is wrong with this, CARTER-HITCHIN, David, FM, 2006/03/15
- RE: What is wrong with this, PATTON, BILLY \(SBCSI\), 2006/03/15
- Re: What is wrong with this, CARTER-HITCHIN, David, FM, 2006/03/15