From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Starting a GNU Guile awesome list Date: Sat, 10 Oct 2020 14:31:49 +0200 Message-ID: References: <87k0z5xp8y.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6420"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: guile-user@gnu.org To: Dmitry Alexandrov , "Dr. Arne Babenhauserheide" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Oct 10 14:32:28 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRE31-0001Yg-Ts for guile-user@m.gmane-mx.org; Sat, 10 Oct 2020 14:32:27 +0200 Original-Received: from localhost ([::1]:55716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRE31-0001Vu-07 for guile-user@m.gmane-mx.org; Sat, 10 Oct 2020 08:32:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRE2V-0001Vl-AN for guile-user@gnu.org; Sat, 10 Oct 2020 08:31:55 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:38855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRE2S-0003J9-Od for guile-user@gnu.org; Sat, 10 Oct 2020 08:31:55 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7BDE816005C for ; Sat, 10 Oct 2020 14:31:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1602333110; bh=Oa6LU3CuBWavpTYhp5SgZ1h4VRo4Mr5wTPNDFLEbxKw=; h=Subject:To:Cc:From:Date:From; b=P9mpjb2Wdi6DYm34vNAwH8e0HfhthZwcHunbuCx2FH6KFipHvES3/WnNbxfucrMyV 34iuVTOzgFQjxwaJJLZ8OCsUyrznpJd7XTaesETkGZ+535RXnDcmONDyaHxSShLP6W mmBPHJjMbgtqzJ7hJbwdVPfC+KNiLTatVF1rTfoXkO/LORPA10iWtoYpgwP7bhYWPP TQtUoCxSwiwcJzpy203LoNyepdU2X0jUo59B2o+V3Esf6UNK+IU4HWfO3m5YXfooKy nri0zhxwUQ0vCxPnVc/RZD07isbgnQRysZtNVhg0AxVo6AnMO2u5UbDsM8/gnWy+Ok p7HrKpFQ/AoMA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4C7kpF5tb5z9rxK; Sat, 10 Oct 2020 14:31:49 +0200 (CEST) X-Tagtoolbar-Keys: D20201010143149341 In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 04:47:47 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.207, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16971 Archived-At: Hello Dmitry! I know this is kind of a late reply. I hope you do not mind me unearthing this. : ) On 7/16/20 10:47 AM, Dmitry Alexandrov wrote: > "Dr. Arne Babenhauserheide" wrote: >>>> In the case you will stick with Org, there at least should be a runnable build recipe (i. e. a Makefile). >> I’d like to cut this discussion short: >> >> https://notabug.org/ZelphirKaltstahl/awesome-guile/pulls/1/files >> all: readme.md readme.texi readme.html >> .INTERMEDIATE: .exported >> readme.md readme.texi readme.html: .exported >> .exported: readme.org >> HOME=$$(dirname $$(realpath "$<")) emacs -Q --batch "$<" --exec "(require 'ox-md)" -f org-md-export-to-markdown -f org-html-export-to-html -f org-texinfo-export-to-texinfo -f kill-emacs > Alternatively, without reliance on implicit behaviour (setting HOME in order to get an expected filename??): > > #!/usr/bin/make -f > > SHELL := emacs > .SHELLFLAGS := --quick --batch --eval > > orgs := $(wildcard *.org) > objs := $(orgs:.org=.md) $(orgs:.org=.texi) > > .PHONY: all > all: $(objs) > > .ONESHELL: > %.md %.texi: %.org > (with-temp-buffer > (require 'ox-md) > (require 'ox-texinfo) > (when (insert-file-contents "$<") > (org-mode) > (org-export-to-file 'md "$*.md") > (org-export-to-file 'texinfo "$*.texi"))) I'm not that proficient at GNU Make yet. I would like to add a way to cleanup created md and texi files, so that, when I run `make` again, it creates all files anew. So I thought I could simply add a `make clean` as follows: ~~~~ .PHONY: clean clean: /bin/rm --verbose *.html *.md *.texi || true; ~~~~ But then I would hardcode the location of `rm` and also it does not work: ~~~~ /bin/rm --verbose *.html *.md *.texi || true; Symbol’s value as variable is void: /bin/rm make: *** [Makefile:17: clean] Error 255 ~~~~ I think this is, because we have `#!/usr/bin/make -f` at the top, so it does not know what `/bin/rm/` is. How would you write the makefile to either add a `make clean` step, or alternatively modify it so that running `make` will always create the other formats anew? Regards, Zelphir