Shlomi Fish wrote:
It also happens with a vanilla GNU make. My question is why is the directory created times and again in the osvn target?
I'm not sure whether that is related, but a directory's time stamp is updated whenever something inside it is updated. As a result, any rule that DEPENDS on the directory rule is likely to get executed without cause. Try replacing the backup dir rule with:

$(BACKUP_DIR)/stamp:
      mkdir -p $(BACKUP_DIR)
      touch $@

Switch anyone who depends on the rule to depend on the stamp file.

Also possible cause of the problem is the fact that you are using an intermediate rule. I would do without it. If you insist on keeping it, at least mark it PHONY (as well as the all and osvn rules).

Use "make -d" to try and figure that one out.

In other areas:
With your current setup, you will find that the "date" command gets executed over and over again and again. Replace the "=" in all lines that employ the $(shell) meta-variable with ":=" to solve that one.

All environment variables are automatically imported to be make variables, so the invocation of the shell to get the HOME variable is unnecessary - just use $(HOME).

Shachar

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to