From 3015e3b516d60adfa46297a37b10bae813e3b3d8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 01 Nov 2017 13:34:27 -0400 Subject: Makefile.am: Split version.c generation into new target --- diff --git a/Makefile.am b/Makefile.am index 6ce855c..a650ed5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,11 +51,14 @@ marquee_LDADD = \ $(WEBKIT2GTK_LIBS) CLEANFILES = version.c -marquee$(EXEEXT): $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \ +version.c: $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \ $(EXTRA_marquee_DEPENDENCIES) - @rm -f marquee$(EXEEXT) - @printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \ + $(AM_V_GEN)printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \ "$(PACKAGE_VERSION_GIT)" >version.c + +marquee$(EXEEXT): $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \ + $(EXTRA_marquee_DEPENDENCIES) version.c + @rm -f marquee$(EXEEXT) $(AM_V_CCLD)$(LINK) version.c $(marquee_OBJECTS) $(marquee_LDADD) \ $(LIBS) -- cgit v0.9.1