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: Zelphir Kaltstahl
Subject: Re: Starting a GNU Guile awesome list
Date: Sun, 11 Oct 2020 02:57:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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
~~~~

-- 
repositories: https://notabug.org/ZelphirKaltstahl



reply via email to

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