guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting a GNU Guile awesome list


From: Ricardo Wurmus
Subject: Re: Starting a GNU Guile awesome list
Date: Sun, 11 Oct 2020 21:51:04 +0200
User-agent: mu4e 1.4.13; emacs 27.1

Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:

> Hello Matt,
>
> On 10/10/20 3:14 PM, Matt Wette wrote:
>>
>>
>> On 10/10/20 5:31 AM, Zelphir Kaltstahl wrote:
>>>
>>>>     #!/usr/bin/make -f
>>>>     
>>>>     SHELL := emacs
>>>>     .SHELLFLAGS := --quick --batch --eval
>>>>     
>>>>
>>
>> Maybe try this:
>>
>>     #!/usr/bin/make -f -
>>
>> with the added dash.
>
> This does not seem to change anything:
>
> ~~~~
> #!/usr/bin/make -f -
>
> # use emacs as a shell, so that we can write emacs lisp code in here
> SHELL := emacs
> # set some flags for emacs
> .SHELLFLAGS := --quick --batch --eval
>
> # all org mode files will be converted
> # orgs := $(wildcard *.org)
> # only the list.org file will be converted
> orgs := list.org
> objs := $(orgs:.org=.md) $(orgs:.org=.texi) $(orgs:.org=.html)
>
> .PHONY: all
> all: $(objs)
>
> .PHONY: clean
> clean:
>       /bin/rm --verbose *.html *.md *.texi || true;
>
> # in here comes the shell specific code
> .ONESHELL:
> %.html %.md %.texi: %.org
>       (with-temp-buffer
>         (require 'ox-md)
>         (require 'ox-texinfo)
>         (require 'ox-html)
>         (when (insert-file-contents "$<")
>               (org-mode)
>               (org-export-to-file 'md "$*.md")
>               (org-export-to-file 'texinfo "$*.texi")
>               (org-export-to-file 'html "$*.html")))
> ~~~~
>
> ~~~~
> $ 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?

-- 
Ricardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]