From ff619346a12d54fedf6357b0d0bd2b3016b0c9fc Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 01 Nov 2017 13:38:15 -0400 Subject: Makefile.am: Use version.c in marquee_LINK Also use it in EXTRA_marquee_DEPENDENCIES. This finally avoids having to define the whole link target. --- diff --git a/Makefile.am b/Makefile.am index a650ed5..8efc035 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,6 +49,8 @@ marquee_CPPFLAGS = \ marquee_LDADD = \ $(GTK_LIBS) \ $(WEBKIT2GTK_LIBS) +marquee_LINK = $(LINK) version.c +EXTRA_marquee_DEPENDENCIES = version.c CLEANFILES = version.c version.c: $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \ @@ -56,12 +58,6 @@ version.c: $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \ $(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) - include $(top_srcdir)/src/local.mk SUBDIRS = . data -- cgit v0.9.1