Hello, I just wanted to simplify my previous question. Say I'm starting with this file: # Makefile.am ------------------------------------------------------------------- [...] library_la_SOURCES = \ ... [A bunch of files...] src/resources/code_archive.S ------------------------------------------------------------------- Where that `src/resources/code_archive.S` file is the assembly file from my previous email. This works correctly, _if_ the file `code.tar` is found in the current directory. In other words, what I would like is for the the following rule to be executed prior to the compilation of `src/resources/code_archive.S`: ------------------------------------------------------------------- code_tar: tar c --exclude='*.o' code/ > code.tar ------------------------------------------------------------------- How do I add that as a pre-compilation "hook" for the `src/resources/code_archive.S` file? (Also though not as important is it possible to have the post-compilation hook removing it as well?) Thanks again for any help. Cheers, Thomas _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf