Hi, If any of you has experience with writing makefiles, please solve my problem.
I am writing a makefile, and I have variable TOOL_STATUS. Suppose I run cmp on two files, I want that the exit status of the cmp command is saved in TOOL_STATUS. How do I do that. As make runs each command in a separate sub-shell, that is the biggest problem. I tried to give, $(TOOL) File1, File2; override $(TOOL_STATUS) = $? But it says override command not found. Here the value of $(TOOL) is cmp. Actually, I want to run diff command depending on the status of cmp, i-e only if the exit status is 1, indicating a difference in the files. And to save the output to a file. This I have to do for some 100 files. Can anybody solve this problem. Regards, Venky HCL Technologies, Noida ================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================