[Xfce4-commits] [apps/xfdashboard] 01/01: Added missing generation for version.h from version.h.in in Makefile

noreply at xfce.org noreply at xfce.org
Tue Feb 7 08:31:41 CET 2017


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 4e09ec5214daf9c90fcfd81aa565fbfd7e113631
Author: Stephan Haller <nomad at froevel.de>
Date:   Tue Feb 7 08:31:06 2017 +0100

    Added missing generation for version.h from version.h.in in Makefile
---
 .gitignore                 |  1 +
 libxfdashboard/Makefile.am | 12 ++++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index b8253b7..c0d19ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,6 +34,7 @@ libxfdashboard/enums.[ch]
 libxfdashboard/marshal.[ch]
 libxfdashboard/stamp-marshal.h
 libxfdashboard/libxfdashboard.pc
+libxfdashboard/version.h
 settings/xfdashboard-settings
 xfdashboard/xfdashboard
 
diff --git a/libxfdashboard/Makefile.am b/libxfdashboard/Makefile.am
index be3cca6..ac89ae3 100644
--- a/libxfdashboard/Makefile.am
+++ b/libxfdashboard/Makefile.am
@@ -19,7 +19,8 @@ libxfdashboard_la_built_sources = \
 	enums.h \
 	enums.c \
 	marshal.h \
-	marshal.c
+	marshal.c \
+	version.h
 
 libxfdashboard_la_headers = \
 	action-button.h \
@@ -269,6 +270,12 @@ marshal.c: marshal.list Makefile
 		&& rm -f xgen-xmc \
 	)
 
+version.h: version.h.in Makefile
+	$(AM_V_GEN) sed -e "s|@LIBXFDASHBOARD_MAJOR_VERSION[@]|$(XFDASHBOARD_VERSION_MAJOR)|" \
+		-e "s|@LIBXFDASHBOARD_MINOR_VERSION[@]|$(XFDASHBOARD_VERSION_MINOR)|" \
+		-e "s|@LIBXFDASHBOARD_MICRO_VERSION[@]|$(XFDASHBOARD_VERSION_MICRO)|" \
+		$< > $@ || rm $@
+
 DISTCLEANFILES = \
 	$(libxfdashboard_la_built_sources)
 
@@ -280,4 +287,5 @@ endif
 EXTRA_DIST = \
 	enums.h.template \
 	enums.c.template \
-	marshal.list
+	marshal.list \
+	version.h.in

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list