[evolution-kolab: 6/9] EPlugin: automake rule fix for distcheck



commit 50d98af5166c06f6f57792194a5220a8f70ca764
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Mon Feb 6 21:17:02 2012 +0100

    EPlugin: automake rule fix for distcheck
    
    * instead of including the *.eplug.xml build
      and install rules from external file, include
      the rules directly in Makefile.am
    * fixes distcheck complaining about not knowing
      how to build the *.eplug file
    * can we find a cleaner way for this? leaving
      eplugin-rule.mk in place for now

 src/eplugin/Makefile.am |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/eplugin/Makefile.am b/src/eplugin/Makefile.am
index a8327f1..3b300e1 100644
--- a/src/eplugin/Makefile.am
+++ b/src/eplugin/Makefile.am
@@ -1,4 +1,16 @@
- EVO_PLUGIN_RULE@
+# included eplugin-rule.mk directly,
+# otherwise 'make distcheck' fails
+%.eplug: %.eplug.in
+	sed -e 's|\ PLUGINDIR\@|$(plugindir)|'		\
+	-e 's|\ SOEXT\@|$(SOEXT)|'			\
+	-e 's|\ GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|'	\
+	-e 's|\ LOCALEDIR\@|$(localedir)|' $< > $@
+
+%.eplug.in: %.eplug.xml
+	LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@
+
+%.error: %.error.xml
+	LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@
 
 plugin_DATA = \
 	org-gnome-kolab.eplug



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]