]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(Makefile): reduce the number of shell invocations
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Thu, 2 Jun 2022 12:31:50 +0000 (12:31 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 21 Jun 2022 05:40:09 +0000 (05:40 +0000)
commitad7d5bc8ea181ef805f65ae690681ebe5ba29bbe
tree5600477a11e4d6081b5fbcec1ba73ef1aeec64e8
parent29e9718f11c5a9346e75f025cea060cf9b456c01
fix(Makefile): reduce the number of shell invocations

Makefile uses recursively expanded macros and as can be seen by simply
adding $(warning Call to shell) in front of $(shell ...) Foo's in the
Makefile, we are calling out to shell 9 times just to get the working
directory, a working directory which doesn't change during Make!

Let's save few pony's and reduce it to 2...
Makefile