bug-mcron
[Top][All Lists]
Advanced

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

[PATCH 1/3] build: Handle missing "bin" directory


From: Mathieu Lirzin
Subject: [PATCH 1/3] build: Handle missing "bin" directory
Date: Fri, 8 May 2020 18:43:41 +0200

This fixes the generation of scripts when "bin" directory does not
exist.

* Makefile.am (bin/%): Invoke $(MKDIR_P) first.
---
 Makefile.am | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index e8fe80c..f63ff8f 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in.
 # Copyright © 2003 Dale Mellor <address@hidden>
-# Copyright © 2015, 2016, 2017, 2018 Mathieu Lirzin <address@hidden>
+# Copyright © 2015, 2016, 2017, 2018, 2020 Mathieu Lirzin <address@hidden>
 #
 # This file is part of GNU Mcron.
 #
@@ -100,7 +100,8 @@ DISTCLEANFILES = src/mcron/config.scm
 
 
 bin/% : src/%.in Makefile
-       -@sed   -e 's,%PREFIX%,${prefix},g'                             \
+       $(AM_V_GEN)$(MKDIR_P) bin ; \
+         sed   -e 's,%PREFIX%,${prefix},g'                             \
                -e 's,%modsrcdir%,${guilesitedir},g'                    \
                -e 's,%modbuilddir%,${guilesitegodir},g'                \
                -e 's,%localstatedir%,${localstatedir},g'               \
@@ -112,8 +113,8 @@ bin/% : src/%.in Makefile
                -e 's,%PACKAGE_NAME%,@PACKAGE_NAME@,g'                  \
                -e 's,%PACKAGE_URL%,@PACKAGE_URL@,g'                    \
                -e 's,%GUILE%,$(GUILE),g'                               \
-          $< > $@;
-       -@chmod a+x $@
+          $< > $@ ; \
+         chmod a+x $@
 
 
 ## ------------ ##
-- 
2.20.1




reply via email to

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