[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Export a function
From: |
G |
Subject: |
Export a function |
Date: |
Fri, 18 Jun 2021 11:36:02 +0200 |
User-agent: |
Evolution 3.36.4-0ubuntu1 |
When I define a func. like
---
define test
some_command $(1) $(2)
endef
export test
---
and further a func. like
---
define submake
@ \
for dir in $(2); do \
$(MAKE) $(1) --directory=$${dir}; \
done
endef
export submake
---
inside a top-makefile and use it down inside a sub-makefile I have the
very same problem like here
https://stackoverflow.com/questions/51319961/export-a-function-in-makefile/51321633#51321633
Passed variables to "imported" func. submake are not passed at all or
are empty.
How do I get around the problem?
Thanks