The idea is that a project has a single file with __DATE__ and __TIME__ in it. It might be cool to have it recompiled without explicitly changing its modification date.
edit: $(shell touch -c ..) might be a good solution if only clumsy.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The standard idiom is to have the object file (not the source file!) depend on a target which doesn’t exist and has no rules or dependencies (this target is conventionally called FORCE), like this
This will break if a file named “FORCE” gets created somehow, though. With GNU make you can instead use the special target .PHONY, which doesn’t have this limitation, but does require you to have an explicit rule to rebuild that file:
See http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html for more details.