]> arthur.barton.de Git - ax-make.git/commitdiff
axify: Set SOURCE_ROOT in generated Makefile(s) github/master
authorAlexander Barton <alex@barton.de>
Tue, 29 Nov 2022 13:50:05 +0000 (14:50 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 29 Nov 2022 13:50:05 +0000 (14:50 +0100)
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