From: Mike Brady Date: Mon, 15 Apr 2019 15:26:43 +0000 (+0100) Subject: Include build_details.h as part of Shairport Sync X-Git-Tag: 3.3rc4~2^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c985ee6059ba1c5e2853f7004ca44b7b4ca6711b;p=thirdparty%2Fshairport-sync.git Include build_details.h as part of Shairport Sync --- diff --git a/Makefile.am b/Makefile.am index 3842686d..229930bd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,8 +8,12 @@ bin_PROGRAMS = shairport-sync # See below for the flags for the test client program -shairport_sync_SOURCES = shairport.c rtsp.c mdns.c common.c rtp.c player.c alac.c audio.c loudness.c activity_monitor.c +shairport_sync_SOURCES = build_details.h shairport.c rtsp.c mdns.c common.c rtp.c player.c alac.c audio.c loudness.c activity_monitor.c + +# from Stack Overflow, with thanks: https://stackoverflow.com/questions/54303270/how-to-execute-shell-commands-in-automake-makefile-am +build_details.h: + echo "#define GITDESCRIPTION \"`git describe --dirty --always 2>/dev/null`\"" >$@ if BUILD_FOR_FREEBSD AM_CXXFLAGS = -I/usr/local/include -Wno-multichar -Wall -Wextra -pthread -DSYSCONFDIR=\"$(sysconfdir)\" AM_CFLAGS = -Wno-multichar -Wall -Wextra -pthread -DSYSCONFDIR=\"$(sysconfdir)\" @@ -101,9 +105,9 @@ if USE_DACP_CLIENT shairport_sync_SOURCES += dacp.c tinyhttp/chunk.c tinyhttp/header.c tinyhttp/http.c endif -BUILT_SOURCES = -noinst_HEADERS = -CLEANFILES = +BUILT_SOURCES = build_details.h +noinst_HEADERS = build_details.h +CLEANFILES = build_details.h shairport_sync_LDADD = noinst_LIBRARIES =