[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The value of $* changes within the same rule
From: |
Martin d'Anjou |
Subject: |
The value of $* changes within the same rule |
Date: |
Wed, 18 Sep 2002 12:50:49 -0400 (EDT) |
Hi,
I have this rule:
$(VRO_DIR)/%.vro $(INCLUDE_DIR)/%.vrh: ./vera/%.vr
$(VERA) -h ./vera/$*.vr . && vrhfix ./$*.vrh ./vera/$*.vr
@if [ ! -d $(INCLUDE_DIR) ]; then mkdir $(INCLUDE_DIR); fi
mv $*.vrh $(INCLUDE_DIR)
@if [ ! -d $(VRO_DIR) ]; then mkdir $(VRO_DIR); fi
mv $*.vro $(VRO_DIR)
And sometimes, not all the times, I get an error message:
vera -h ./vera/system_cfg.vr . && vrhfix ./system_cfg.vrh ./vera/system_cfg.vr
mv: cannot stat `./.tmp.system_cfg.vrh': No such file or directory
Couldn't write ./system_cfg.vrh
make[3]: *** [/work/verif1/shared/vro/system_cfg.vro] Error 1
All the pattern substitutions seems to take place properly, except for the
mv operation.
How can $* on the third line (first mv) change from "system.cfg" to
".tmp.system_cfg"??
I'm running linux and the file server is solaris.
Martin
- The value of $* changes within the same rule,
Martin d'Anjou <=