summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.once.head/20-var.mk
blob: 5f97ef7fe6553b911f0f0b49a9a8c40fb90d9040 (plain)
1
2
3
4
5
6
7
# Copyright 2015-2016 Luke Shumaker <lukeshu@sbcglobal.net>.

var = $(patsubst ./%,%,$(topoutdir)/.var.)

$(var)%: FORCE
	@printf '%s' '$(subst ','\'',$($*))' | sed 's|^|#|' | $(WRITE_IFCHANGED) $@
-include $(wildcard $(var)*)