summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 6ce855c..0533a5e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,7 +40,7 @@ PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION_GIT)
bin_PROGRAMS = marquee
-marquee_SOURCES =
+marquee_SOURCES = version.c
marquee_CPPFLAGS = \
-DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" \
-DPKGDATADIR=\"$(pkgdatadir)\" \
@@ -51,13 +51,10 @@ 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
- $(AM_V_CCLD)$(LINK) version.c $(marquee_OBJECTS) $(marquee_LDADD) \
- $(LIBS)
include $(top_srcdir)/src/local.mk