From a3b0c8eed288dacf4c76c6c90c42a99139b1ca01 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <lfleischer@calcurse.org>
Date: Tue, 9 Feb 2016 22:13:16 +0100
Subject: Install calcurse-caldav by default

Add a new Makefile to build and install calcurse-caldav and include it
in the top-level build process.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 Makefile.am                |  2 +-
 configure.ac               |  2 +-
 contrib/caldav/Makefile.am | 13 +++++++++++++
 3 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 contrib/caldav/Makefile.am

diff --git a/Makefile.am b/Makefile.am
index 8e7e1b0..fb428c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS= foreign
 
 ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = po src test scripts
+SUBDIRS = po src test scripts contrib/caldav
 
 if ENABLE_DOCS
 SUBDIRS += doc
diff --git a/configure.ac b/configure.ac
index e32b027..b1480ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,7 +143,7 @@ AM_CONDITIONAL(CALCURSE_MEMORY_DEBUG, test x$memdebug = xyes)
 #                                                               Create Makefiles
 #-------------------------------------------------------------------------------
 AC_OUTPUT(Makefile doc/Makefile src/Makefile test/Makefile scripts/Makefile \
-          po/Makefile.in po/Makefile)
+          po/Makefile.in po/Makefile contrib/caldav/Makefile)
 #-------------------------------------------------------------------------------
 #                                                                        Summary
 #-------------------------------------------------------------------------------
diff --git a/contrib/caldav/Makefile.am b/contrib/caldav/Makefile.am
new file mode 100644
index 0000000..860b85c
--- /dev/null
+++ b/contrib/caldav/Makefile.am
@@ -0,0 +1,13 @@
+AUTOMAKE_OPTIONS = foreign
+
+dist_bin_SCRIPTS = \
+	calcurse-caldav
+
+EXTRA_DIST = \
+	calcurse-caldav.py
+
+CLEANFILES = \
+	calcurse-caldav
+
+calcurse-caldav: calcurse-caldav.py
+	cp "$(srcdir)/$<" "$@"
-- 
cgit v1.2.3-70-g09d2