Hi Ricardo! Thanks for your reply. I've not gotten around to trying this yet.
I was hoping for a solution, which could use Elisp in one part of the makefile and bash in another part of the makefile. I seem to remember a blog post somewhere, in which someone explained how to use various things as shells in makefiles, but I have lost the link to it and could not find it again. I also do not remember, whether that was multiple different things as shell in one makefile, or in separate files. For example I would like to use Elisp for the Emacs stuff and Bash for removing files. However, in the meantime I figured out, that I could simply mark something as .PHONY when I do not care about its output already being there or when it has no output. At some point I need to learn more about makefiles again. For now I think my makefile knowledge is only basic. Thanks, Zelphir On 10/12/20 12:33 PM, Ricardo Wurmus wrote: > Zelphir Kaltstahl <[email protected]> writes: > >>>> ~~~~ >>>> $ make clean >>>> /bin/rm --verbose *.html *.md *.texi || true; >>>> Symbol’s value as variable is void: /bin/rm >>>> make: *** [Makefile:19: clean] Error 255 >>>> ~~~~ >>> Well, isn’t that expected as you’re using Emacs as a shell? >> Yes : ) But that is the problem: How can I add a clean step, even though >> I am using Emacs as shell? Or can I switch shell for one command? > Try this elisp snippet: > > (call-process "/bin/rm" nil nil nil "the-file-to-delete") > -- repositories: https://notabug.org/ZelphirKaltstahl
