TMPLIB=$(notdir $(@PACKAGE@LIB)); export TMPLIB;\
$(SHLD) $(@PACKAGE@SOFLAGS) -o $(CURDIR)/$@ $(notdir $(@PACKAGE@O) $(@PACKAGE@DO)) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) $(SHLIB);\
chmod a-w $(CURDIR)/$@ ;\
- rm -rf $$TMPDIR
+ cd $(ALICE_ROOT) ; \rm -rf $$TMPDIR
ifneq ($(DYEXT),)
$(@PACKAGE@DLIB):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk
$(MUTE)TMPDIR=/tmp/@MODULE@$$$$.`date +%M%S` ; \
export TMPDIR; mkdir $$TMPDIR ; cd $$TMPDIR ; \
find $(CURDIR)/@MODULE@/tgt_$(ALICE_TARGET) -name '*.o' -exec ln -s {} . \; ;\
- rm -f $(CURDIR)/$@ ;\
+ \rm -f $(CURDIR)/$@ ;\
$(DYLD) $(@PACKAGE@DYFLAGS) -o $(CURDIR)/$@ $(notdir $(@PACKAGE@O) $(@PACKAGE@DO)) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) $(DYLIB);\
chmod a-w $(CURDIR)/$@ ;\
- rm -rf $$TMPDIR
+ cd $(ALICE_ROOT) ; \rm -rf $$TMPDIR
endif
#------------------------------------------------------------------------