In an automake and autoconf project how would you add a custom pre-build step. I need to run a command before make is ran to update a files timestamp to ensure it gets built on every build.
Thanks
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.
If you need a file to be regenerated on every ‘make’ invocation, this makefile idiom will do the job:
However, that you need this suggests that
always_build_mechanges each time it is rebuilt, which is a bad practice. Your build process should be fully deterministic — that is, if you haven’t changed the sources, rebuilding from scratch should produce exactly the same bits it did the last time.