diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-29 18:39:41 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-29 18:39:41 -0400 |
commit | 7697b072847837b681ab14948f87cd19c514bf71 (patch) | |
tree | 36422bad2a636f3144219b4801db5ae54b3cd514 /build-aux | |
parent | 597a4f3a8ca8528833e67d92a6546617d3ede8fe (diff) |
add checks that top{src,out}dir are set
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/Makefile.head.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build-aux/Makefile.head.mk b/build-aux/Makefile.head.mk index e5ef379a09..c680f41a4e 100644 --- a/build-aux/Makefile.head.mk +++ b/build-aux/Makefile.head.mk @@ -16,6 +16,13 @@ # This bit only gets evaluated once, at the very beginning ifeq ($(_at.NO_ONCE),) +ifeq ($(topsrcdir),) +$(error topsrcdir must be set before including Makefile.head.mk) +endif +ifeq ($(topoutdir),) +$(error topoutdir must be set before including Makefile.head.mk) +endif + _at.noslash = $(patsubst %/.,%,$(patsubst %/,%,$1)) # These are all $(call _at.func,parent,child) #_at.relto = $(if $2,$(shell realpath -sm --relative-to='$1' $2)) |