]> arthur.ath.cx Git - ax-make.git/blobdiff - scripts/axify
axify: Set SOURCE_ROOT in generated Makefile(s)
[ax-make.git] / scripts / axify
index 7c0390c9dbe80a5a0621346d726e9dd38d0be14d..2cd3be20d1938429c60c5f08b47e00fdc607cf0f 100755 (executable)
@@ -120,6 +120,8 @@ cat >"Makefile" <<EOF
 # Makefile
 #
 
+SOURCE_ROOT ?= \$(CURDIR)
+
 SUBDIRS = $subdirs
 
 include $LIB_D/Makefile.ax
@@ -133,6 +135,8 @@ cat >"$LIB_D/Makefile" <<EOF
 # Makefile
 #
 
+SOURCE_ROOT ?= \$(CURDIR)/..
+
 include Makefile.ax
 EOF
 fi