chiark / gitweb /
subdirmk: main.mk: clear SUBDIRMK_MAKEFILES MAKEFILE_TEMPLATES
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 14 Nov 2019 00:00:11 +0000 (00:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 14 Nov 2019 00:23:20 +0000 (00:23 +0000)
commit65f9b5d134424d2d186f57a80db0f561a755be5a
treef6e958913550e9542a6e7d5a14775714e8e365ff
parent46f587dabe0d36473aaf444fea8cc94232860c41
subdirmk: main.mk: clear SUBDIRMK_MAKEFILES MAKEFILE_TEMPLATES

Otherwise, if we reenter main.mk (for exmaple, there are some reasons
why one might want to $(MAKE) a particular target), and someone
foolishly said `export', we inherit SUBDIRMK_MAKEFILES from our
previous self and end up reading everything twice.  That causes things
not to work very well.

While we're here, clear MAKEFILE_TEMPLATES too.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
subdirmk/generate