help-make
[Top][All Lists]
Advanced

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

some queston about make


From: loody
Subject: some queston about make
Date: Thu, 9 Jul 2009 14:22:03 +0800

Dear all:
I have some questions about make usage:
1. when passing command to shell why we have to add ";" at each end of command.
Is it the rule define in make or in shell?
example like below:
do_test:
 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
                $(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \
                        link_a.$(SHLIB_TARGET); \
                libs="-l$$i $$libs"; \
        done

2. why sometimes we use "{}" to embrace variable instead of "()"
Is that due to we have to pass it to shell?

example like below:
ifeq (0,${MAKELEVEL})
whoami := $(shell whoami)
host-type := $(shell arch)
MAKE := ${MAKE} host-type=${host-type} whoami=${whoami}
endif

appreciate your help,
miloody




reply via email to

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