From 3cdef069ffaa186b680b8b3e03813b9703899059 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Thu, 10 Apr 2008 12:59:25 +0000
Subject: [PATCH] Fix example scripts build dependencies

Currently, the example scripts (the init.d and the cron script) do not
depend on the Makefile, so if configure is rerun with different
parameters these scripts are not rebuild.

The patch adds Makefile as a dependency so changes to installation paths
or other parameters trigger the rebuild.

Reviewed-by: imsnah
---
 doc/examples/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index 427bad914..613857ac8 100644
--- a/doc/examples/Makefile.am
+++ b/doc/examples/Makefile.am
@@ -4,7 +4,7 @@ CLEANFILES = $(nodist_EXTRA_DATA)
 nodist_EXTRA_DATA = ganeti.initd ganeti.cron
 
 all-local: ganeti.initd ganeti.cron
-ganeti.%: ganeti.%.in
+ganeti.%: ganeti.%.in Makefile
 	sed \
 	  -e "s#@PREFIX@#$(prefix)#g" \
 	  -e "s#@SYSCONFDIR@#$(sysconfdir)#g" \
-- 
GitLab