summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-02-22 15:24:50 +0100
committerThomas Letan <lthms@soap.coffee>2020-02-22 15:24:50 +0100
commit54a467c7e7b61c1556c29f75760d27831f4969a7 (patch)
treeba0fb8037e12a04e5b22be373855b245f9aedbde
parentProvide a generic and reliable way to extends cleopatra (diff)
Make ~make~ to call itself with the `build` rule when none is given
-rw-r--r--Makefile3
-rw-r--r--site/posts/meta/Bootstrap.org3
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 297f87e..75a5462 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,8 @@ EMACS := ROOT="${ROOT}" emacs
GENFILES := scripts/tangle-org.el bootstrap.mk
-default: build
+default:
+ @make build
include bootstrap.mk
diff --git a/site/posts/meta/Bootstrap.org b/site/posts/meta/Bootstrap.org
index 379ad0b..9196c6c 100644
--- a/site/posts/meta/Bootstrap.org
+++ b/site/posts/meta/Bootstrap.org
@@ -122,7 +122,8 @@ For *(2)*, we introduce a ~default~ rule with ~build~ as a
dependency.
#+BEGIN_SRC makefile :tangle Makefile :noweb tangle
-default: build
+default:
+ @make build
#+END_SRC
For *(1)*, we rely on a particular behavior of ~make~ regarding the ~include~