summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 0533a5e..6ce855c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,7 +40,7 @@ PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION_GIT)
bin_PROGRAMS = marquee
-marquee_SOURCES = version.c
+marquee_SOURCES =
marquee_CPPFLAGS = \
-DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" \
-DPKGDATADIR=\"$(pkgdatadir)\" \
@@ -51,10 +51,13 @@ marquee_LDADD = \
$(WEBKIT2GTK_LIBS)
CLEANFILES = version.c
-version.c: $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \
+marquee$(EXEEXT): $(marquee_OBJECTS) $(marquee_DEPENDENCIES) \
$(EXTRA_marquee_DEPENDENCIES)
- $(AM_V_GEN)printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \
+ @rm -f marquee$(EXEEXT)
+ @printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \
"$(PACKAGE_VERSION_GIT)" >version.c
+ $(AM_V_CCLD)$(LINK) version.c $(marquee_OBJECTS) $(marquee_LDADD) \
+ $(LIBS)
include $(top_srcdir)/src/local.mk