]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
bootstrap_cmds: Auto detect version
authorCameron Katri <me@cameronkatri.com>
Sun, 23 May 2021 13:46:38 +0000 (09:46 -0400)
committerCameron Katri <me@cameronkatri.com>
Sun, 23 May 2021 13:46:38 +0000 (09:46 -0400)
bootstrap_cmds/migcom.tproj/Makefile

index 6677a747b6ddeaf9051ad4b9d79db0eebba0f321..150a059a026cba4db6f36040d206f7c3a28a2929 100644 (file)
@@ -14,7 +14,9 @@ SRCS= error.c \
        parser.y
 SCRIPTS=       mig.sh
 
-CFLAGS+=-DMIG_VERSION=\"mig-116.100.1\"
+VERSION!=      cat ${.CURDIR}/../.apple_version
+
+CFLAGS+=-DMIG_VERSION=\"mig-${VERSION}\"
 
 BINDIR=/usr/libexec/
 SCRIPTSDIR=/usr/bin/